Error trying to set custom animation for transition viewController iOS4

I am creating an application for the iPhone, and I have implemented a section for the knowledge base about the application object. I used table browsing and viewController navigation so that when selecting any cell in the table, a new view controller is created and added to the navigation stack.

I tried to implement an up / down waving animation, but I get this error at runtime

The parental control controller uses outdated localization when called - [UIViewController transitionFromViewController: toViewController: duration: options: animation: completion:] '

here is a sample code

(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

// change the accessory button to activity indicator
UITableViewCell *cell = [mTableView cellForRowAtIndexPath:indexPath];


SomeViewController *ad = [[SomeViewController alloc] initWithNibName:@"SomeViewController" bundle:[NSBundle mainBundle]];
ad.title = cell.textLabel.text;


[self.navigationController addChildViewController:ad];
[self.navigationController transitionFromViewController:self toViewController:ad duration:0.7 options:UIViewAnimationOptionTransitionCurlUp animations:^{} completion:^(BOOL completed){
    [ad release];
}];

Any help, advice and advice is greatly appreciated! Thank!

+3
source
1

, , UINavigationViewController. vc UIViewController, . . Apple:

, . , .

UINavigationViewController, .

+6

All Articles