gpt4 book ai didi

iphone - 呈现 View Controller 时出现错误

转载 作者:行者123 更新时间:2023-11-29 03:34:50 26 4
gpt4 key购买 nike

我在尝试呈现 View Controller 时收到此错误。实际上我正在 ios 4.3 模拟器上测试这个项目。在其他模拟器上它工作正常。这是非弧形项目。支持 ios 4.3 及更高版本。

request on uploadmanager:<NSMutableURLRequest http://www.livebinders.com/filetree/ipad>
2013-10-12 14:00:54.690 LiveBinders[1703:13b03] -[UploadManagerViewController presentViewController:animated:]: unrecognized selector sent to instance 0x6605a30
2013-10-12 14:00:54.695 LiveBinders[1703:13b03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UploadManagerViewController presentViewController:animated:]: unrecognized selector sent to instance 0x6605a30'
*** Call stack at first throw:
(
0 CoreFoundation 0x01ca85a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x017bc313 objc_exception_throw + 44
2 CoreFoundation 0x01caa0bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x01c19966 ___forwarding___ + 966
4 CoreFoundation 0x01c19522 _CF_forwarding_prep_0 + 50
5 LiveBinders 0x0003baa8 -[UploadManagerViewController openEvernote] + 248
6 LiveBinders 0x00068e4b -[TableVC tableView:didSelectRowAtIndexPath:] + 171
7 UIKit 0x00b97b68 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1140
8 UIKit 0x00b8db05 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
9 Foundation 0x012a779e __NSFireDelayedPerform + 441
10 CoreFoundation 0x01c898c3 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 19
11 CoreFoundation 0x01c8ae74 __CFRunLoopDoTimer + 1220
12 CoreFoundation 0x01be72c9 __CFRunLoopRun + 1817
13 CoreFoundation 0x01be6840 CFRunLoopRunSpecific + 208
14 CoreFoundation 0x01be6761 CFRunLoopRunInMode + 97
15 GraphicsServices 0x01dfc1c4 GSEventRunModal + 217
16 GraphicsServices 0x01dfc289 GSEventRun + 115
17 UIKit 0x00b2ec93 UIApplicationMain + 1160
18 LiveBinders 0x0000285d main + 93
19 LiveBinders 0x000027b5 start + 53

<----- calling this method on presenting new view controller ---->

-(void)openEvernote
{
self.dropboxShareLink = NULL;
self.dropBoxFileName = NULL;

EverNoteVC *everNoteVC = [[EverNoteVC alloc]initWithNibName:@"EverNoteView" bundle:nil];
everNoteVC.delegate = (id)self;

if (popoverController.isPopoverVisible) {
[popoverController dismissPopoverAnimated:NO];
}

[self presentViewController:everNoteVC animated:YES ];

[everNoteVC release];
}

最佳答案

presentViewController 在 5.0 之前的 iOS 版本中不可用。

尝试使用

[self presentModalViewController:everNoteVC animated:YES];

相反。

关于iphone - 呈现 View Controller 时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19332516/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com