开发者

How to slide button vertically in iphone?

开发者 https://www.devze.com 2023-02-22 09:33 出处:网络
How to slide button vertically in iphoneby 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

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消