Hi All,
I'm trying a new way of doing something for the first time (using IB instead of creating stuff on the fly), and think I'm like 99% there - but missing that crucial 1% to get me over the finishing line:
The issue:
Imagine I have a class defined as follows:
***EDITED to add a view to wire up, but that didn't fix it either ***
Code:
@interface menuContainerView : UIView {
IBOutlet UIButton *button1;
IBOutlet UIButton *button2;
IBOutlet UIView *_view;
}
@property (nonatomic, retain) IBOutlet UIButton *button1;
@property (nonatomic, retain) IBOutlet UIButton *button2;
@property (nonatomic, retain) IBOutlet UIView *_view;
These are then synthesized in the .m file.
Next, I created a XIB. I set the files owner type to menuContainerView and put two buttons on it. I wired these to the IBOutlets, and that bit is fine.
Finally, I took a ViewController XIB from one of the screens in app, dropped the UIView control on it, set it to the menuContainerView and expected to see my class show up. It didn't....
So, I'm pretty sure it's something like I have no actual view wired up or something...
Does anyone see what step I'm missing here?
Cheers,
Coulls