On Jun 11, 2014, at 9:41 AM, Torsten Curdt <tcu...@vafer.org> wrote: > Thanks but there you are setting the frame yourself. The idea was to > use constraints. Usually you would pin them to the superview. But in > this case...
My solution uses Auto Layout constraints to get the appropriate size for the header view using systemLayoutSizeFittingSize. Given how UITableViews work when coupled with Auto Layout I believe you do have to set the frame yourself but you can determine what the frame should be using Auto Layout constraints. You can not use Auto Layout to *position* the header or footer view, but you can use Auto Layout to layout any views within that header or footer. If I understand your original situation, you probably want to use a UIView container for your label and then position that label within its container using Auto Layout. - Sebastian _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com