AM facing trouble in showing Images on the ImageView, added on UIScrollview, after rotation
I am having few UIImageViews(8 diferent) on my UIScrollView.
The Problem, is when I rotate my Device, I have changed the frame(x,y axis only) of UIscrollview and of (x,y axis only) , It doesn't displays the Images, I added on the UIimageViews after Rotation.
After Rotation, I touched the ScrollView, and then It shows the Images on the Uiimageviews again. I tried everything. Surfed Stackoverflow and google, found nothing, working in my case.
//Magazine Images
//subview1 MAG Imaegs
[[asy_Array_Mag_sub1 objectAtIndex:0] setFrame:CGRectMake(59, 120, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:1] setFrame:CGRectMake(296, 120, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:2] setFrame:CGRectMake(576, 120, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:3] setFrame:CGRectMake(802, 176, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:4] setFrame:CGRectMake(57, 465, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:5] setFrame:CGRectMake(296, 383, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:6] setFrame:CGRectMake(570, 377, 136, 174)];
[[asy_Array_Mag_sub1 objectAtIndex:7] setFrame:CGRectMake(802, 486, 136, 174)];
[self.otlScrollView setFrame:CGRectMake(0, 0, 1024, 768)];
self.otlScrollView.contentSize = CGSizeMake(1024 * total_pages, 768);
[_otlSubView setFrame:CGRectMake(a1, 0, 1024, 768)];
[self.otlScrollView addSubview:_otlSubView];
[_otlSubView2 setFrame:CGRectMake(b1, 0, 1024, 768)];
[self.otlScrollView addSubview:_otlSubView2];
[_otlSubView3 setFrame:CGRectMake(c1, 0, 1024, 768)];
[self.otlScrollView addSubview:_otlSubView3];
[_otlScrollView setContentOffset:CGPointMake(1024 * (self.otlPageControl.currentPage), 0)];