Looping the layout that was set up in Interface Builder

Posted by Slavenko on Stack Overflow See other posts from Stack Overflow or by Slavenko
Published on 2012-12-18T10:53:31Z Indexed on 2012/12/18 11:03 UTC
Read the original article Hit count: 148

Filed under:
|
|
|

I just need for someone to point me in the right direction of how I should be doing things. I wanted to make an iOS news like app that would have interface resembling Windows Phone. Large and small image tiles that represent one news item each. Now I was thinking to create some basic layout in storyboard, that would consist out of, for example, a title, and a 3 different sized tiles/images (the gray part on the attached image). Now, I would be getting the data as a JSON array that has holds different news categories so I was wondering if somehow the set up layout could be reused in a for loop since the layout will only repeat itself (the red part on the attached image) and oly the data would be different.repeating layout

Can this be done, should I even try doing something like this, or should I try to create an entire layout programmatically? I wouldn't mind doing it programatically, it's just that I don't have much experience in creating layouts that way, and wanted to make sure that I don't do something that I might regret later. Thank you for any help and advice.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios