How can i reload TTLaucherView with new items?

249 views Asked by At

I am using Three20 for my new iOS project. I have impletemented TTLauncherView & TTTabStrip, and both are displaying correctly. Now i want to load new items in TTLaucherView on selection of TTTabStrip.

How should i go about it ? I can't find any relevant method to do this.

2

There are 2 answers

0
Gaurav Verma On

strange ! I was also looking for answer to same question. Currently i am creating new TTLauncherView whenever selection is changed for tab items.

But i am looking for a better solution.

0
donkim On

I'm a bit rusty on this but looking at code from one of my apps, it looks like you add to the self.launcherView.pages collection (not sure if this is the default way of doing this, but in my project, launcherView is a class derived from TTLauncherView).

self.launcherView.pages is an NSArray, where each index is an array of TTLauncherItems. So you add to an existing page or create a new page, and add TTLauncherItems to it.

Hope this helps!