Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
Meh. Then I hope for a huge number of radars because this makes it feel a little half baked - to put it nicely. Feels like a strange oversight given how Apple is pushing autolayout. Thanks for the responses guys. cheers, Torsten On Wed, Jun 11, 2014 at 8:23 PM, Luke Hiesterman wrote: > You have

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Luke Hiesterman
You have to set the frame yourself (before assigning to the tableView.tableFooterView) property. You can use autolayout and systemSizeFittingSize to get the appropriate size, but you have to apply it yourself. Luke On Jun 11, 2014, at 11:16 AM, Torsten Curdt wrote: > My question really isn't

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
My question really isn't about positioning. Given that the tableview scrolls vertically the width should give the horizontal width constraint for the footer view. The height of the footer should come from the intrinsic size of the footer view. At least that's how I image it should work. Now the q

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Sebastian Celis
On Jun 11, 2014, at 9:41 AM, Torsten Curdt 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

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
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... I tried assigning the footer view and then assigning the constraints to the super view. It just did not yield the expected results. cheers, Torste

Re: UITableView's tableFooterView and autolayout

2014-06-11 Thread Sebastian Celis
Hi Torsten, On Jun 11, 2014, at 6:26 AM, Torsten Curdt wrote: > So what's the story with tableFooterView and tableHeaderView and > autolayout? I am trying to put a label into a footer. I have had luck with code like the following: - (void)viewDidLoad { [super viewDidLoad]; self.h

UITableView's tableFooterView and autolayout

2014-06-11 Thread Torsten Curdt
So what's the story with tableFooterView and tableHeaderView and autolayout? I am trying to put a label into a footer. No problem if I give the label a frame but with the promise of autolayout this should not be necessary - I thought. I cannot really set any constraints referring to the super view