iphone - Three20 & TabBarController -


i'm stuck on something.

i'm using three20 , tttnavigator example. can find tabbarcontroller using :

[self settaburls:[nsarray arraywithobjects:@"tt://crush",                                                @"tt://crushes",                                                nil]]; 

to create each tab.

ok until here ok, problem have tabs without title , image. know how set individual when loads view controller inside - (void)viewdidload :

    self.title = @"crush";     uiimage* image = [uiimage imagenamed:self.title];     self.tabbaritem = [[[uitabbaritem alloc] initwithtitle:self.title image:image tag:0] autorelease]; 

but problem because when init app tabs except selected empty.

any suggest on how implement that.

ok i've resolved, used -init method of each view controller.. usually... need change :

[self settaburls:[nsarray arraywithobjects:@"tt://crush/1",                                                @"tt://crushes/2",                                                nil]]; 

and in map :

[map from:@"tt://crush/(init)" toviewcontroller:[makecrushviewcontroller class]]; [map from:@"tt://crushes/(init)" toviewcontroller:[mycrushesviewcontroller class]];  

for me right looks pretty weird.. ok working, don't ask me why need set 1 , 2 before links.. if set 1 on each crashes...


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -