Hi I have Just Update my xcode to xcode5, but I have no idea how to add new referencing outlet using xcode 5 by ctrl-drag and drop the label or buttons just like previous what I did in xcode 4.5
Thank you in advance
Open your storyboard and click on the editor button (seems like a suit) and select the .h associate to your view :
Then, ctrl drag the UI element from the storyboard or xib on your header file or your .m between @interface and @end.
XCode will show you a pop-up with some options :
And you will obtain the following code :
@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIScrollView *myScrollView;
@end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With