I think it might be because you didn't specify the coordinates it needs to go to. For example
Code:
imageView.frame=CGRectmMake(0,0,imageView.frame.size.width, imageView.frame.size.height);
also if this was copy and pasted you have a typo here
Code:
[scrollView2 setContentSize:CGSizeMake(imageView.frame.size.wid th, imageView.frame.size.height)];
There is a space in width.