开发者

How can i reload TTLaucherView with new items?

I am using Three20 for my new iOS project. I have impletemented TTLauncherVi开发者_如何学Pythonew & 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.


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!


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜