Set the content size of the scrollView to be equal of the scrollView height.
Up vote 0 down vote favorite share g+ share fb share tw.
I am using a UIScrollView to scroll horizontally between 3 different UIViews (I call them pages because I have scrollView. PagingEnabled=YES;). Each page can also be scrolled vertically.
My problem is that even if I use scrollView. DirectionalLockEnabled=YES; it still scrolls in both directions. How can I stop this for happening.
(I want a similar behavior with the one that the Calendar app has, when Day mode is selected; I have already checked some calendar apps, but they don't have the horizontal scrolling enabled). Thank you! Iphone uiscrollview paging direction link|improve this question asked Apr 4 at 11:40Cosmin305 24% accept rate.
CHeck this link stackoverflow.com/questions/9637203/… it may help you . Thanks! – Kiran Apr 4 at 11:55.
Set the content size of the scrollView to be equal of the scrollView height. ScrollView. ContentSize = CGSizeMake(scrollView.frame.size.
Width * pages. Count,scrollView.frame.size. Height).
I think you misunderstood my question. I still need to be able to scroll vertically, but I don't want to drag diagonally. I think I found a solution, someone asked a similar question, and it has quite interesting answers.
– Cosmin Apr 4 at 11:51 I think you need to review your question because you said that your problem "it still scrolls in both directions. How can I stop this for happening"! What does this mean?
! – Malek_Jundi Apr 4 at 12:02 You're right, I didn't formulate my question right. My problem is actually that is scrolls diagonally.
Fortunately I have solved this by using one main UIScrollView, that scrolls horizontally, and there "child" UIScrollViews that scroll only vertically. Thank you for your help. – Cosmin Apr 4 at 12:11.
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.