Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 显示视图控制器时出错_Iphone_Ios_Objective C - Fatal编程技术网

Iphone 显示视图控制器时出错

Iphone 显示视图控制器时出错,iphone,ios,objective-c,Iphone,Ios,Objective C,我在尝试显示视图控制器时遇到此错误。实际上,我正在ios 4.3模拟器上测试这个项目。在其他模拟器上,它运行良好。这是一个非arc项目。ios 4.3及更高版本支持此功能 request on uploadmanager:<NSMutableURLRequest http://www.livebinders.com/filetree/ipad> 2013-10-12 14:00:54.690 LiveBinders[1703:13b03] -[UploadManagerViewCon

我在尝试显示视图控制器时遇到此错误。实际上,我正在ios 4.3模拟器上测试这个项目。在其他模拟器上,它运行良好。这是一个非arc项目。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];
}
上传管理器上的请求: 2013-10-12 14:00:54.690活页夹[1703:13b03]-[UploadManagerViewController呈现视图控制器:动画:]:发送到实例0x6605a30的无法识别的选择器 2013-10-12 14:00:54.695 LiveBinders[1703:13b03]***由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UploadManagerViewController presentViewController:动画:]:未识别的选择器发送到实例0x6605a30' ***第一次抛出时调用堆栈: ( 0 CoreFoundation 0x01ca85a9例外预处理+185 1 libobjc.A.dylib 0x017bc313 objc_异常_抛出+44 2 CoreFoundation 0x01caa0bb-[NSObject(NSObject)不识别选择器:+187 3 CoreFoundation 0x01c19966 uuuuuuuuuuuuuuuuuuu+966 4 CoreFoundation 0x01c19522\u CF\u转发\u准备\u 0+50 5个活页夹0x0003baa8-[UploadManagerViewController OpenerNote]+248 6活页夹0x00068e4b-[TableVC tableView:DidSelectRowatineXpath:+171 7 UIKit 0x00b97b68-[UITableView\u SelectRowAtIndex路径:动画:滚动位置:notifyDelegate:+1140 8 UIKit 0x00b8db05-[UITableView\u用户选择RowatPendingSelectionIndexPath:+219 9基金会0x012A79E,NFieldayEdEffice + 441 10 CoreFoundation 0x01c898c3\uuuuuCfRunLoop\u正在调用\uuU OUT\uU到\uU计时器\uU回调函数\uuuuu+19 11 CoreFoundation 0x01c8ae74\uuu CFRunLoopDoTimer+1220 12 CoreFoundation 0x01be72c9 _ucfrunlooprun+1817 13 CoreFoundation 0x01be6840 CFRunLoopRunSpecific+208 14 CoreFoundation 0x01be6761 CFRunLoopRunInMode+97 15图形服务0x01dfc1c4 GSEventRunModal+217 16图形服务0x01dfc289 GSEventRun+115 17 UIKit 0x00b2ec93 UIApplicationMain+1160 18活页夹0x0000285d干管+93 19活页夹0x000027b5开始+53 -(无效)开维诺特 { self.dropboxShareLink=NULL; self.dropBoxFileName=NULL; EverNoteVC*EverNoteVC=[[EverNoteVC alloc]initWithNibName:@“EverNoteView”包:nil]; everNoteVC.delegate=(id)self; if(popoverController.isPopoverVisible){ [popoverController解除PopOveranimated:否]; } [自我呈现视图控制器:everNoteVC动画:是]; [everNoteVC发布]; }
presentViewController
在5.0之前的iOS版本中不可用

试一试

[self presentModalViewController:everNoteVC animated:YES];
相反