Search code examples
objective-cios6favorites

Favorite list iOS 6 position data


I want to load my data from sqlite database and position it on the view (one photo and the description).

How can I put the data in position X and Y after load it from the database?

I did a image to explain it (I'm developing for iphone 5): enter image description here

I think it maybe I can do it with CGRect but I don't know exactly how.


Solution

  • It's important to say that I used another better solution than that.

    On the iOS 6 we have a new thing called: CollectionViewController

    enter image description here

    It's a really better solution for this problem.