Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode5 add new referencing outlet

Tags:

xcode5

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

like image 847
user1871425 Avatar asked Oct 03 '13 02:10

user1871425


1 Answers

Open your storyboard and click on the editor button (seems like a suit) and select the .h associate to your view :

enter image description here

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 :

enter image description here

And you will obtain the following code :

@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIScrollView *myScrollView;

@end
like image 53
Jordan Montel Avatar answered Sep 17 '22 21:09

Jordan Montel