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
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…