2012-11-22 46 views

回答

1

一招,你可以:)

得到其想要成爲流行後看到的視圖 - 控制。

沒有動畫彈出2個

推targetviewcontroller動畫,你有控制器和推動動畫:)

我希望它能幫助!

0
[UIView beginAnimations:nil context:nil]; 
TargetViewCointroller *obj = [[TargetViewCointroller alloc]initWithNibName:@"TargetViewCointroller" bundle:nil]; 
    [self.navigationController pushViewController:obj animated:YES]; 

    [UIView setAnimationDuration:1.0]; 
    [UIView setAnimationBeginsFromCurrentState:YES]; 
    [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.navigationController.view cache:NO]; 
    [UIView commitAnimations]; 
    [obj_ release]; 

讓我知道它正在正常工作或不... 編碼愉快!!!!

+0

我想彈出時彈出的動畫...我不想再分配TargetViewCointroller – Dev

+0

你可以在這裏發佈一些代碼嗎? – NiravPatel

1

工作100%

列表= [[List_ViewController 的alloc] initWithNibName:@ 「List_ViewControlleripad」 束:無]; CATransition * transition = [CATransition動畫]; transition.duration = 0.45; transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]; transition.type = kCATransitionFromLeft; [transition setType:kCATransitionMoveIn]; transition.subtype = kCATransitionFromLeft; transition.delegate = self; [self.navigationController.view.layer addAnimation:transition forKey:nil]; self.navigationController.navigationBarHidden = NO; [self.navigationController pushViewController:list animated:NO];

相關問題