开发者

Vertical scrolling in Ipad app

In my app i want to display say 20 im开发者_如何学Cages at a time.I have an idea for that like I want to create a Scroll view and inside that i will add image view for all images .also i want to show 5 images in a row then in other row 5 more images and 2 more rows consisting of 5 images each.Initially my scroll view should show the 2 rows first and then i will be able to scroll vertically to see the other rows .Can anyone help me with this.Any source code or demo like this.Any help will be appreciated.

I am able to show images in horizontal scrolling but what i desire is something different ,please help.

Thanks, Christy


I think you should look at a GridView for this - that's basically what you describe. Check out AQGridView


Use standard UI components, no need for third party stuff. Use a UIScrollView and then EITHER a collection of CALayers (if they don't need to respond to touch events) or UIImageViews if the they do.

See my article as an example of how to lay out multiple items, but instead of adding them to the view directly you will add them to a scrollview (and set the content size accordingly)...Box Model

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜