Right. A few things.
when the view loaded, viewDidLoad is called, not viewdidload (case sensitive).
Another thing. The "view" outlet needs to be set to the UIView, not the UIImageView.
In the .h file, you should have:
Code:
@interface TestViewViewController : UIViewController {
UIScrollView *scrollView2;
}
@property (nonatomic, retain) IBOutlet UIScrollView * scrollView2;
@end
What I gave you was just an example, not literally what it should be. Sorry for the confusion.
In IB, you then need to hook up the "scrollView2" outlet from "File's Owner" to the UIScrollView.
You also need to make sure that the UIScrollView is only 480 pixels high. Otherwise it won't scroll.
Tom