ios - AutoLayout labels getting cut off on right side of screen -
ios - AutoLayout labels getting cut off on right side of screen -
i'm trying utilize auto layout custom table view cell in app.
i can't seem constraints quite right.
i layed labels out in custom table view cell, labels still getting cutting off. ideas?
thanks! post else needed. tried show needed info in image below:
debugging in xcode. somehow shows in simulator looks different in xcode debug.
here's width of tableview shown:
update: problem here related user matt said in accepted answer, wanted create q&a bit clearer have figured out else comes across this.
in initial comment, mentioned xcode view debugging, great , able dig little bit more. called assistant editor: device preview, able see layout , layers of onscreen see if maybe have labels overlapping or going offscreen based on device running on. if want check multiple device sized, nail plus icon in lower left hand corner of picture.
this helped me find overlapping layers , sizing issues tableview. able see how looked on each device size.
what helps here utilize pin menu. labels can run off screen because doesn't know constraints of cell based on device size. label can run offscreen if label based off of landscape layout device iphone 5 , in portrait example. pin menu:
hope makes sense , gives more color problem. allow me know if have questions @ all, help everyone!
the problem using auto layout have not done sizing table view. table view here not view controller's view; subview. view controller's view automatically sized size of device / window, subviews not automatically resized. ending table view much wide device; whole table sticking off space on right side.
ios uitableview storyboard xcode6
Comments
Post a Comment