XCode 8 - How to solve an Auto resizing issue on XCode version 8.0?
I asked to Apple about this same issue, and they have sent the following message to my inbox:
Hello Raja,
Engineering has determined that your bug report (28489404) and will be closed.
Auto resizing issue in UITableView in Xcode 6
I had the same problem recently. I added a label in my UITableViewCell's content view and every time it's hide (x >> 320). I realized that the problem was in the SOURCE CODE XML.
The XML was:
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="InvoiceCell" rowHeight="60" id="B9T-xx-TCx" customClass="InvoiceCell">
// My custom cell is 60 height
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
// Wrong Autoresizing
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="B9T-xx-TCx" id="nvL-MG-mGs">
//No rect frame and wrong autoresizing mask
<autoresizingMask key="autoresizingMask"/>
To solve my problem is just change "tableViewCell" and "tableViewCellContentView" to:
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="InvoiceCell" rowHeight="60" id="B9T-xx-TCx" customClass="InvoiceCell">
//Add/change this 2 lines in <tableViewCell>
<rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
and
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="B9T-xx-TCx" id="nvL-MG-mGs">
//Add/change this 2 lines in <tableViewCellContentView>
<rect key="frame" x="0.0" y="0.0" width="320" height="60"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES"/>
So, problem solved! I hope this help you guys.
Related Topics
Facebooksdk(4.1.X) Custom Login UI Button - Swift(1.2)
Why Does Unexpected Non-Void Return Value in Void Function Happen
Core Bluetooth State Preservation and Restoration Not Working, Can't Relaunch App into Background
Apple MACh-O Linker (Id) Warning:Building for MACosx, But Linking Against Dylib Built for iOS
Xcode 10 Not Being Able to Archive Project
How to Change Pagetabview Programmatically in iOS 14, Swiftui 2
How to Properly Structure Firebase Database to Allow Easy Reading and Removal
Font Descriptor Returns Nil in iOS 8
Cgcolorgetcomponents() Not Returning the Correct Values for Black and for White
Asynchronous Upload with Nsurlsession Will Not Work But Synchronous Nsurlconnection Does
How to Group Array of Objects by Date in Swift
How to Get Assets.Xcassets File Names in an Array (Or Some Data Structure)
Ios7 - Device Unique Identifier
Build Video from Uiimage Using Swift
Possible to Send Automated Email
How to Segue with Data from One Tab to Another Tab Properly
Avassetwriter Avvideoexpectedsourceframeratekey (Frame Rate) Ignored