ios - Content of UIscrollview not updating, when changing orientation -


This is my problem.
Using a scrollview whose frame I am changing while rotating the device.

I have 8 non-static image views on that scrollview I and images on AsyncImageView are set by calling web services.
The project is working fine. Images are properly filled on the async imageview I

But when I rotate the device, AsyncImageViews does not display any image . I tried everything, no success. Then I used a trick. Scrollview offset content while moving in any direction.

And my project works fine All images are displayed properly. It looks like when I change the rotation, my scrollviews are not refreshing, but as I set my offset 1.0; It started showing images properly on the async image Is there anything about the eclocoloview?

I used

  [self.scrollView setNeedsDisplay];  

I also implemented some other things, found on StakeVarF Flo and Google, nothing worked in my case. help please.

Here is the code

  // Magazine Images // SubView 1 MAG Images [[ASC_AremAg_sub 1 Objective Index: 0] Set Frame: CGRactMake (59, 120, 136, 174) )]; [[Asy_Array_Mag_sub1 objectAtIndex: 1] Setframe: CGRactack (296, 120, 136, 174)]; [[Asy_Array_Mag_sub1 objectAtIndex: 2] Setframe: CGRactack (576, 120, 136, 174)]; [[Asy_Array_Mag_sub1 objectAtIndex: 3] Setframe: CGRectMake (802, 176, 136, 174)]; [[Asy_Array_Mag_sub1 objectAtIndex: 4] Set Frame: CGRactack (57, 465, 136, 174)]; [[Asy_Array_Mag_sub1 objectAtIndex: 5] Setframe: CGRactack (296, 383, 136, 174)]; [[Asy_Array_Mag_sub1 objectAtIndex: 6] Setframe: CGRactack (570, 377, 136, 174)]; [[Asy_Array_Mag_sub1 objectAtIndex: 7] Setframe: CGRactack (802, 486, 136, 174)]; [Self. Ollcrollview setframe: CGRactam (0, 0, 1024, 768)]; Self.otlScrollView.contentSize = CGSizeMake (1024 × total_page, 768); [_otlSubView Set Frame: CGRactMake (A1, 0, 1024, 768)]; [Self.otlScrollView addSubview: _otlSubView]; [_otlSubView2Set Frame: CGRactMake (B1, 0, 1024, 768)]; [Self.otlScrollView addSubview: _otlSubView2]; [_otlSubView3Set Frame: CGRactMake (C1, 0, 1024, 768)]; [Self.otlScrollView addSubview: _otlSubView3]; [_otlScrollViewSetContentOffset: CGPointMake (1024 * (self.otlPageControl.currentPage), 0)];  


Comments