0

これは私のコードです:

UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:vc];
UIBarButtonItem *anotherButton = [[UIBarButtonItem alloc] initWithTitle:@"RETURN" style:UIBarButtonItemStylePlain target:self action:@selector(refreshPropertyList:)];
navigationController.navigationItem.rightBarButtonItem = anotherButton;
[anotherButton release];       
[IpadAppDelegate.stackController presentModalViewController:navigationController animated:YES];

ここに画像の説明を入力

4

1 に答える 1

0

私はその理由を見つけます:

変更が必要navigationController.navigationItem.rightBarButtonItem = anotherButton;

に:self.navigationItem.rightBarButtonItem = anotherButton;

于 2013-01-16T03:28:25.850 に答える