Using Xcode 10.1, I create a tableview on my main storyboard. In the prototype cell, I place a text label. I then create constraints to match it's center with its superview center, both horizontally and vertically. So the label should be centered in the cell. All looks good. When I choose "View as" a different device, it is misaligned horizontally. However when I run in the simulator, it appears to be working OK. Is this an Xcode bug or is there something I'm not understanding about the way interface builder works and displays the label?
0条回答
相关问题
- NSTextField font styling resets when selected
- Xcode 10.1 How to fix User Interface Inspector “Ca
- Xcode IBDesignablesAgentCocoaTouch loads CPU infin
- UISegmentedControl selected index always 0?
- Cocoa Mac Application Title says: “untitled”
相关文章
- Xcode: Is there a way to change line spacing (UI L
- Why are my UIView layer properties not being set w
- How to add a bar button item in interface builder?
- Instead of UICollectionView a black screen is disp
- UISearchBar in place of UINavigationController UIN
- Using iOS 6 Auto Layout to position view relative
- UILabel subclass appearance in Storyboard
- No content attribute for UITableView in .xib