I am trying to create an iPhone app that creates a UIButton for every item in a NSArray. So basically, if there are 20 items in the array, 20 UIButtons are created, each with an identifier that somehow connects it to the respective item in the array. If I were to add another item to the array, 21 buttons would be created instead of 20. Is there a way to do this using Storyboards and Interface Builder?
Also, is there a way to paginate the UIButtons that are created? I want to have six buttons on a screen, with the option of scrolling to the next 6. So if there are 20 items in the array, it would create a ScrollView with 6 on the first 3 pages and 2 on the last one.
Thanks ahead of time! I’m trying to avoid using a TableView for this for visual reasons. If there’s an easier way to accomplish this, please let me know!
In my opinion, this wouldn’t be easy using InterfaceBuilder. You better create them using code. For the pagination, you have to use a paging UIScrollView.
Hope this helps.