Reputation: 2801
I am trying to add a scrollview
for my view
I am going to my AppDelegate.h
file and adding the following:
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate> {
UIWindow *window;
IBOutlet UIScrollView *mainScroll;
}
@property (strong, nonatomic) UIWindow *window;
@end
Than I go to my IB(storyboard)
and right click on my scrollview
to try and add the outlet but I don't see the created IB?
David
Upvotes: 1
Views: 110
Reputation: 667
OK here you go: This video just outlines the process of creating a project and linking a scroll view. The part where you see a blue line form, it is because I a holding down control.
Here is the link to the video (it is mp4 so you might have to download it)
Upvotes: 0
Reputation: 124997
Than I go to my IB(storyboard) and right click on my scrollview to try and add the outlet but I don't see the created IB?
The app delegate isn't included in a storyboard file, so you won't be able to connect the scroll view to an outlet in the app delegate. You probably shouldn't need to do that anyway -- normally it'd make more sense for a view controller to manage its own views than to have the app delegate manage something in the view controller's view hierarchy.
So, short answer: consider moving the outlet to whatever view controller manages this scroll view.
Upvotes: 1