Iphone UINavigationController PopViewController激活问题

Iphone UINavigationController PopViewController激活问题,iphone,ios,uinavigationcontroller,uinavigationitem,popviewcontrolleranimated,Iphone,Ios,Uinavigationcontroller,Uinavigationitem,Popviewcontrolleranimated,我有LoginViewControllerIphone实例,我在其中推送TasksRootViewControllerIphone的实例 然后在TasksRootViewControllerIphone(出现10秒后)中,我调用[self.navigationController popViewControllerAnimated:YES] 并收到一个错误: [NSRecursiveLock isSystemItem]: unrecognized selector sent to instanc

我有
LoginViewControllerIphone
实例,我在其中推送
TasksRootViewControllerIphone的实例

然后在
TasksRootViewControllerIphone
(出现10秒后)中,我调用
[self.navigationController popViewControllerAnimated:YES]

并收到一个错误:

[NSRecursiveLock isSystemItem]: unrecognized selector sent to instance 0x3ba360
我尝试打印导航控制器堆栈:

po [self.navigationController viewControllers]
$2 = 0x003445f0 <__NSArrayI 0x3445f0>(
<LoginViewControllerIphone: 0x3b73c0>,
<TasksRootViewControllerIphone: 0x3af290>
)
在TasksRootViewControllerIphone.m中,我有:

- (void)viewDidLoad
{
    [self performSelector:@selector(popCurrentViewControllerAnimated) withObject:self afterDelay:10];
}

- (void)popCurrentViewControllerAnimated
{
    [self.navigationController popViewControllerAnimated:YES];
}

将viewDidload方法更新为

 - (void)viewDidLoad
{
    [self performSelector:@selector(popCurrentViewControllerAnimated) withObject:nil afterDelay:10];
}
希望它能解决你的问题

方法
popCurrentViewControllerAnimated
不接受任何参数。所以
withObject
应该是
nil
。不是我自己

我找到了重点

问题是因为它不是arc项目,其中一个uibarbuttonims又发布了一次


奇怪,但这导致了popViewController出现问题。

检查我找不到解决方案,你可以发布一些推视图控制器的代码吗我的朋友?发布你的任务RootViewController启动时的可执行方法,这主要发生在你的ViewDidLoad方法中。我更新了推代码和ViewDidLoad代码。有什么新的吗?检查问题proper@kirti正如viewDidLoad方法{[self-performSelector:@selector(popCurrentViewControllerAnimated)with Object:self-afterDelay:10];}中的问题一样,这是错误的。现在是错误的,因为我有一个单独的方法popCurrentViewControllerAnimated,并且我使用@selector(popCurrentViewControllerAnimated)
 - (void)viewDidLoad
{
    [self performSelector:@selector(popCurrentViewControllerAnimated) withObject:nil afterDelay:10];
}