ios - 当我尝试做一个segue时崩溃

时间:2012-11-18 20:09:31

标签: ios ios5 nsurlconnection

enter image description here enter image description here我有一个执行正常的控制器,但最后,当它尝试对另一个屏幕做一个segue时,我得到了这个崩溃:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<UpdateController: 0xa09bb10>) has no segue with identifier 'HomeSegue''
*** First throw call stack:
(0x247a012 0x1f6fe7e 0x15a0492 0xafd6 0xfbc5c8 0xf2402a 0xef1d23 0xef1a34 0xf7e301 0x20e253f 0x20f4014 0x20e52e8 0x20e4fcb 0x95a58b24 0x95a5a6fe)
libc++abi.dylib: terminate called throwing an exception

我确实做了我试图引用的segue,但由于某种原因我仍然遇到了崩溃。

这是我在远程服务器调用后尝试执行segue的方法:

[NSURLConnection sendAsynchronousRequest:urlRequest queue:queue completionHandler:^(NSURLResponse *response, NSData *data, NSError *error)
         {
           ...
                             [self performSegueWithIdentifier:@"HomeSegue" sender:self];

感谢您的建议!

0 个答案:

没有答案