Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
403 views
in Technique[技术] by (71.8m points)

iphone - How To Create A Gallery on iOS

I'm starting to develop a simple application for iOS, and this application is a simple gallery of some photo (taken from a website). The first problem I encountered is how to create the view for the gallery.

The view should be something like this (or the Photo App): Sample View

however doing a view this way is problematic, first because it uses fixed dimension, and I think is a bit difficult to implement (for me).

The other way is to use a custom cell within a tableview, like this: custom cell

but it is still using fixed dimension.

What's the best way to create a gallery, without using any third part lib (like Three20)?

Thanks for any reply :)

PS. I think that using fixed dimension is bad because of the new iphone 4 (with a different resolution), am I right?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You should check out AQGridView which does exactly what you are trying to achieve. Even if you want to write your own custom code, have a look at the AQGridView source as more than likely you will need to use a UIScrollView as a base.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...