开发者

How to Slide TextView in iphone?

开发者 https://www.devze.com 2022-12-14 02:49 出处:网络
Can Anyone tell me how to slide textview in iphone in the same manner as we do with images. I am developing开发者_如何学编程 an application in which I want to side the TextView. I have 5 TextViews.

Can Anyone tell me how to slide textview in iphone in the same manner as we do with images. I am developing开发者_如何学编程 an application in which I want to side the TextView. I have 5 TextViews.

Can anyone help me with this.....

Thanx in advance...


You'll want a UIScrollView with paging enabled. Since with paging the view "stops on multiples of the view bounds" (according to the docs), you'd just line up your five text fields side-by-side, and make them the width of the visible area (the screen) inside a container view that sized to contain all 5.

0

精彩评论

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

关注公众号