PDA

View Full Version : SCrolling images




mmalsn
Aug 16, 2011, 05:45 AM
Hi guys ,

i want to scroll images in this structure

up1.jpg up4.jpg up7.jpg
| | |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9

i know i should play with content size but

how can i know if user scroll vertical so i will restrict the width

and make just to top image and when user get back i then return the width to all images

thanks,



jnoxx
Aug 16, 2011, 06:19 AM
Could you please explain better >.>

http://mattgemmell.com/2008/12/08/what-have-you-tried
http://www.mikeash.com/getting_answers.html

mmalsn
Aug 16, 2011, 06:36 AM
the explanation
first program run the first image is shown

if there image named up1.jpg the user can scroll vertically and see the up image

and then continue with scroll horizontally and vertically with above structure

jnoxx
Aug 16, 2011, 08:16 AM
You haven't read the links I showed you, and i'm still stumped upon your question.. I have no idea what you mean.
All I understand, is you want to scroll vertically first time, and horizontally second time :s

dejo
Aug 16, 2011, 08:35 AM
up1.jpg up4.jpg up7.jpg
| | |
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9


What's with the HTML tags?

fireshot91
Aug 16, 2011, 12:53 PM
You haven't read the links I showed you, and i'm still stumped upon your question.. I have no idea what you mean.
All I understand, is you want to scroll vertically first time, and horizontally second time :s

I think he wants to see if there are images, and if so, then scroll.

Say, you're on your homescreen. And if there's an image titled up1.png, you scroll up. Then it brings you to a (second?) homescreen. And IF there's an image titled up2.png, you scroll up. If not, you scroll right/left depending on the name of the image. If on the second one, there's an image titled right1.jpg, you scroll right. Etc. And repeat each time.

mmalsn
Aug 17, 2011, 02:07 AM
All these numbers are images

suppose these images are (images of story) so if the user sow the first screen and of course it is an image if the first screen has image up to it which i indicate with name up1.jpg the user has two choices

1- scroll up to (up1.jpg).
2- continue with the other images (horizontally)

and continue with the others if image number 4 has (up4.jpg)

this two choices is available again,if it hasn't there is just horizontal scroll
?
is that clear!?

Sykte
Aug 18, 2011, 05:15 PM
All these numbers are images

suppose these images are (images of story) so if the user sow the first screen and of course it is an image if the first screen has image up to it which i indicate with name up1.jpg the user has two choices

1- scroll up to (up1.jpg).
2- continue with the other images (horizontally)

and continue with the others if image number 4 has (up4.jpg)

this two choices is available again,if it hasn't there is just horizontal scroll
?
is that clear!?

Are you looking to use a UIScrollView or a UIWebView?