This one ought to be a softball for the Objective-C pros out there:
Is there a way to connect an interface builder object to an element of an NSArray in Objective-C? The connecting would normally be done with IBOutlet
, as in:
@interface ViewController : UIViewController {
IBOutlet UILabel *label1;
IBOutlet UILabel *label2;
IBOutlet UILabel *label3;
//...
}
Can I put the labels in an NSArray and still attach them to objects in interface builder?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…