I am an new user of Objective-c. I have a problem to load imageview to scrollview.
I use interface builder to add a scrollview onto view. and then I try to add an imageview on the scrollview by code.
UIImage *image = [[[UIImage alloc]init]autorelease]; image = [UIIamge imageNamed:@"cover.jpg"];
imageView = [[[UIImageView alloc]init]autorelease]; imageVIew.frame = CGRectMake(50.0, 40.0, 200.0,200.0); imageView.image = image;
[scorllView addSubview:imageView];
then I add another imageView onto the ScrollView with position at (50.0,1000.0) and length = 200, width = 200 (the screen of ipad is 786*1004) the photos can appear on the screen. The second photo is not complete, and I try to scroll the screen, however I can't scroll it.
Thanks.