I segue to a UIViewController, and during its init method, 2 labels' text is supposed to be specified. However, that doesn't happen and the text never changes. All the connections are right, but they aren't displaying anything, and I can't figure out why.
Below is the code that is supposed to change the UILabels for this particular ViewController.
-(id)initWithCoder:(NSCoder *)aDecoder{
if (self = [super initWithCoder:aDecoder]) {
_nameLabel.text = @"NAME";
_addressLabel.text = @"ADDRESS";
}
return self;
}
Below is the ".h" file for it:
@property (strong, nonatomic) Location *selectedLocation;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
Any thoughts?