IOS: scrollView with a paging random?

Up vote 0 down vote favorite share g+ share fb share tw.

I have a scrollView and inside this scroll view I have 4 images. It's in paging enabled. But I want to do an IBAction that scroll these images random.

How can I do? Ios xcode uiscrollview link|improve this question asked Sep 13 '11 at 10:53blackguardian947739 88% accept rate.

Define numPages 4 CGRect frame = scrollView. Frame; frame.origin. X = frame.size.

Width * (arc4random() % (numPages - 1)); frame.origin. Y = 0; scrollView scrollRectToVisible:frame animated:YES.

It may be useful to you. Every time change the contentoffset scrollView contentOffset:CGSizeMake(totalscrollviewwidth,480; And find this link also.

Look at the link – Tendulkar Sep 13 '11 at 11:32.

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