Re: Adding constrains for anonymous buttons

2015-01-25 Thread Ben Kennedy
On 25 Jan 2015, at 7:32 am, Aaron Lewis wrote: > I'm trying to create a "label group", so I decided to generate 3 > buttons and put them in a single line, evenly sized and evenly spaced. What do you mean by "label group"? Would UILabel be more suitable than UIButton? (I presume that your for-

Adding constrains for anonymous buttons

2015-01-25 Thread Aaron Lewis
Hi, I'm trying to create a "label group", so I decided to generate 3 buttons and put them in a single line, evenly sized and evenly spaced. But these buttons are un-named, is it impossible to use constraintsWithVisualFormat now? e.g UIButton *buttons[3]; for (int i = 0; i < 3; ++ i)