UIScrollView Custom View rotation problem?

From what it looks like, You have a lot of subviews(Custom Views) in your ScrollView First of all never try to detect the orientation using UIDevice , it is not recommended by apple. For handling rotations you have been provided with the function : "shouldAutorotateToInterfaceOrientation Inside this method, You can simple run a loop for detecting the subviews present inside your scrollview and then set the frame and size of each subview This might look something like this: (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait) { for(UIView *asubview in scrollView. Subviews) { asubview.

Frame = "NEW FRAME"; } } else { asubview. Frame = "NEW FRAME"; } } Hope it helps you..although I know this has been asked long back :-) Cheers.

From what it looks like, You have a lot of subviews(Custom Views) in your ScrollView. First of all never try to detect the orientation using UIDevice , it is not recommended by apple. For handling rotations you have been provided with the function : "shouldAutorotateToInterfaceOrientation" Inside this method, You can simple run a loop for detecting the subviews present inside your scrollview and then set the frame and size of each subview.

This might look something like this: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait) { for(UIView *asubview in scrollView. Subviews) { asubview. Frame = "NEW FRAME"; } } else { asubview.

Frame = "NEW FRAME"; } } Hope it helps you..although I know this has been asked long back :-) Cheers.

I have a ScrollView with a Custom View. Now I have the problem with the rotation, the view has after the rotation not the correct frame pos / size. How can I call the CustomView after rotation for a reposition and resize the frame and content?!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions