I have a UITableViewController that manages a list of available in-app purchases and a UIViewController that shows the details on the purchases.
I'd like to set up my detail view in storyboard (and thus need IBOutlets,) but I'd like my UITableViewController to be able to set the details using properties of the UIViewController. This is what I attempted to do in the header:
But it's generating three errors, one for each object, on the line where I synthesize the variables in my .m.
I suspect that the issue is that I never taught myself enough on C (I stopped somewhere during pointers.) Possibly going back and teaching myself the rest would be a good idea...
I'd like to set up my detail view in storyboard (and thus need IBOutlets,) but I'd like my UITableViewController to be able to set the details using properties of the UIViewController. This is what I attempted to do in the header:
Code:
@interface ProductViewController : UIViewController
{
IBOutlet UIButton *purchaseButton;
IBOutlet UILabel *productLabel;
IBOutlet UITextView *productDetails;
}
@property UIButton *purchaseButton;
@property UILabel *productLabel;
@property UITextView *productDetails;
@end
But it's generating three errors, one for each object, on the line where I synthesize the variables in my .m.
Code:
@synthesize purchaseButton, productLabel, productDetails;
Existing ivar 'productDetails' for unsafe_unretained property 'productDetails' must be __unsafe_unretained
I suspect that the issue is that I never taught myself enough on C (I stopped somewhere during pointers.) Possibly going back and teaching myself the rest would be a good idea...