我在IOS初學者 我試着爲UINavigationController創建自定義動畫 請告訴我蘋果拒絕此代碼或不?自定義UINavigationController
CATransition *transition = [CATransition animation];
transition.duration = 0.5;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
transition.type = kCATransitionReveal;
transition.subtype = kCATransitionFromBottom;
transition.delegate = self;
[self.navigationController.view.layer addAnimation:transition forKey:nil];
self.navigationController.navigationBarHidden = NO;
[self.navigationController pushViewController:myViewcontroller animated:NO];
謝謝!
我們如何確定蘋果會拒絕哪些? – khr055