Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Hi all,

I am i am adding a scrollview to my view with width of 768 and height of 60.
so that it will appear on top of the view as a horizontal strip
when user changes orientation to landscape in will change the frame of scrollview to width of 300 and height of 768 so that it will appear on left side as a vertical strip.

I will adjust the contentSize and subviews accordingly to show as horizaontal in portrait mode and vertically in landscape mode.

But i noticed that the scrollbars are appearing in weird size (almost the size of scrollview) when i scroll in landscape,and appearing in portrait also.

I know that the issue is because of change in frame and contentsize of scrollview, but how to do it in a better way?

[Note that this glitch is not appearing when the scrollbars are hidden]

Please help !
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.