iphone - UITabController flip -
i have tabbarcontroller in appdelegate :
iboutlet tabbarviewcontroller *tab;
this main controller in app.
and in 1 of viewcontroller
inside tabs want add uibutton when user press tabcontroller change uiviewcontroller flip animation.
i tried achive method:
radiomainvc *radiomainvc = [[radiomainvc alloc] initwithnibname:@"radiomainvc" bundle:nil]; uinavigationcontroller *radionav = [[uinavigationcontroller alloc] initwithrootviewcontroller:radiomainvc]; [uiview beginanimations:@"animation" context:nil]; [self.tabbarcontroller presentmodalviewcontroller:radionav animated:no]; [uiview setanimationtransition:uiviewanimationtransitionflipfromleft forview:self.tabbarcontroller.view cache:no]; [uiview commitanimations];
and flip won't work,any idea how fix it?
unfortunately haven't tested code might trick:
[uiview transitionfromview: self.tabbarcontroller.view toview: radionav.view duration: 0.5 options: uiviewanimationtransitionflipfromleft completion: ^(bool finished) { window.rootviewcontroller = radionav; }];
Comments
Post a Comment