ios - Is it impossible to add a subview to my UITableViewCell's contentView and have it equal width to the contentView? -
when drop uiview
in uitableviewcell
's contentview
in storyboard, making them have equal widths not available option. why this? how can accomplish them having same width?
the subview moving around, it's not possible set size using pinning contentview
's margins.
the cells dynamic , aren't calculated @ time. calculated @ layoutsubviews check out tut quick overview.
http://captechconsulting.com/blog/tyler-tillage/ios-8-tutorial-series-auto-sizing-table-cells
if absolutely must utilize equal width alternative hold shift/option while setting constraints on uiview in contentview , set it's top,bottom,right , left snap contentview(container). can add together equal width/height view. seems unnecessary imo.
ios uitableview interface-builder autolayout
No comments:
Post a Comment