How to slide button vertically in iphone?
How to slide button vertically in iphone by programmatically ?
Hey i have 7 开发者_JAVA技巧images. and i want to display only 3 images vertically. and other images will be display when user scroll it upward.
Take a look at UIScrollView class :-) and then at UIImageView
If I understand what you want to do...
But we won't code you the thing ;-)
Good Luck.
add scrollview and setPagingEnabled =yes;
then
two way
1.add all images in view as subview and set the frame of them by one by one
2.in one view while scroll up add next image in view and remove old image.
right.Got it?
i think this tutorial will help you
http://www.edumobile.org/iphone/iphone-programming-tutorials/pagecontrol-example-in-iphone/
精彩评论