• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding constrains for anonymous buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding constrains for anonymous buttons


  • Subject: Adding constrains for anonymous buttons
  • From: Aaron Lewis <email@hidden>
  • Date: Sun, 25 Jan 2015 23:32:30 +0800

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)
    {
        buttons[i] = [[UIButton alloc] init];
    }

Is there any suggestion?

--
Best Regards,
Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
Finger Print:   9F67 391B B770 8FF6 99DC  D92D 87F6 2602 1371 4D33
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding constrains for anonymous buttons
      • From: Ben Kennedy <email@hidden>
  • Prev by Date: [RESOLVED] Re: Trying to create a collection view with evenly distributed cell
  • Next by Date: Re: Binding to a view's model object
  • Previous by thread: [RESOLVED] Re: Trying to create a collection view with evenly distributed cell
  • Next by thread: Re: Adding constrains for anonymous buttons
  • Index(es):
    • Date
    • Thread