In xcode4.2, I have a UiViewController bundled with a same name xib file. In the UiViewController, I have some IBOutlets as below connect to the xib.
@property (retain, nonatomic) IBOutlet UIButton *topButton;
@property (retain, nonatomic) IBOutlet UIButton *hotButton;
@property (retain, nonatomic) IBOutlet UIButton *newButton;
@property (retain, nonatomic) IBOutlet UIButton *starredButton;
Now, I want to create a iPad version xib file of the UIViewController, what shall I do? i.e. how to connect one IBOutlet to two version’s xib.
Any help will be appreciated! thanks advanced!
You just need two nibs with the appropriate naming
Then just make sure they both have the same file’s owner and hook up the connections you want.