O'Reilly logo
  • Rebecca Slatkin thinks this is interesting:

_textFieldEmail

From

Cover of iOS 6 Programming Cookbook

Note

  • (NSArray *) confirmEmailTextFieldConstraints{

    NSMutableArray *result = [[NSMutableArray alloc] init];

    NSDictionary *viewsDictionary = NSDictionaryOfVariableBindings(_textFieldConfirmEmail, _textFieldEmail);

    [result addObjectsFromArray: [NSLayoutConstraint constraintsWithVisualFormat:kConfirmEmailHorizontal options:0 metrics:nil views:viewsDictionary] ];

    [result addObjectsFromArray: [NSLayoutConstraint constraintsWithVisualFormat:kConfirmEmailVertical options:0 metrics:nil