what width to set an UITableViewCell in Interface Builder?
What width should I set a UITableViewCell in Interface Builder?
Background - So I'm creating a custom view (i.e. not subclassing) that I will use.
Some questions around the question:
- should it be a fixed width? but then what it the strategy for how it handles being put into EDIT mode then - does this require another "stretch" type setting in IB to compliment the fixed width?
- what about what happens when the iPhone is put into landscape mode then
- even without lands开发者_高级运维cape mode or useage of any of the other cell views (e.g. for image etc), does the width of my custom view have to equal the width of the iPhone screen for optimal resolution - or in other words could I just create a much bigger view in Interface Builder (easy to work with / read) and then IOS would auto-scale the width accordingly?
If you set up the autoresizingMask
s appropriately to solve the edit mode and landscape issues, it doesn't really matter what size the cell is in Interface Builder as it will automatically adjust correctly for whatever size it winds up at in the actual table.
精彩评论