因未捕获的异常终止应用程序' NSInvalidArgumentException',原因:

时间:2015-02-11 12:59:58

标签: xcode

我使用以下代码将帖子上传到wordpress网站但有问题。

  TallyViewController *postVC = (TallyViewController *)[(UINavigationController *)[self presentingViewController] topViewController];
[postVC publishPostWithTitle:timeStampLabel.text content:descText.text image:self.image];
[self dismissViewControllerAnimated:YES completion:nil];

这是我收到的错误......

[UITabBarController publishPostWithTitle:content:image:]: unrecognized selector sent to instance 0x157505dc0
2015-02-11 06:50:13.637 WingMan[966:160223] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController publishPostWithTitle:content:image:]: unrecognized selector sent to instance 0x157505dc0'
*** First throw call stack:
(0x1853d659c 0x195adc0e4 0x1853dd664 0x1853da418 0x1852deb6c 0x100159c28 0x189bb9418 0x189ba252c 0x189bb8db4 0x189bb8a40 0x189bb1f94 0x189b8568c 0x189e2460c 0x189b83bf4 0x18538e9ec 0x18538dc90 0x18538bd40 0x1852b90a4 0x18e45b5a4 0x189beaaa4 0x10014377c 0x19614aa08)
libc++abi.dylib: terminating with uncaught exception of type NSException

0 个答案:

没有答案