编译代码时出现警告:
"未平衡调用开始/结束外观转换:
<UINavigationController: 0xa98e050>
"
这是我的代码:
KVPasscodeViewController *passcodeController = [[KVPasscodeViewController alloc] init];
passcodeController.delegate = self;
UINavigationController *passcodeNavigationController = [[UINavigationController alloc] initWithRootViewController:passcodeController];
[(UIViewController *)self.delegate presentModalViewController:passcodeNavigationController animated:YES];
viewDidLoad
中调用它,将那段代码移到viewDidAppear
中解决了这个问题。这是正确的答案。 - Isuru