ios - add constraint to view in Xcode 6 -
i wanted add image stack overflow doesn't allow me upload photo because of reputation issue. leave link it. https://www.evernote.com/l/abqezcbsud1gwbdiiighjtpkomncudzglqi
anyway,
i have ios project xcode 6.
i made view controller , added table view.
view controller - top layout guide - bottom layout guide - view +- table view after that,
i added view , table view cell
view controller - top layout guide - bottom layout guide - view +- table view ++- view ++- table view cell my problem height of view of table view 30 on story board. while running simulator, table view cell @ bottom.
but cannot add constraint set height of view of table view.
thank in advance!
in case, firstly, should move second view out of table view. right layout should like:
view controller - top layout guide - bottom layout guide - view +- view +- table view ++- table view cell then, should set proper constraints between second view(the user name in case) , table view. if still not familiar auto layout , don't know how work constraints, suggest take @ brilliant article solve of puzzles :
http://www.raywenderlich.com/50317/beginning-auto-layout-tutorial-in-ios-7-part-1
finally, can adjust height of table view cell further using method:
-(cgfloat)tableview:(uitableview *)tableview heightforrowatindexpath:(nsindexpath *)indexpath { }
Comments
Post a Comment