这里的代码使用:
UIPopoverController *popVC= [[UIPopoverController alloc] initWithContentVIEwController:pickerController];_pop = popVC;_pop.delegate = self;[_pop presentPopoverFromrect:attachBtnFrame inVIEw:_sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:NO];
谢谢..
解决方法 终于找到了解决方案:在主线程中显示Popover如下.
if([[[UIDevice currentDevice] systemVersion] floatValue]>=8.0){ dispatch_after(dispatch_time(disPATCH_TIME_Now,(int64_t)(0.0 * NSEC_PER_SEC)),dispatch_get_main_queue(),^{ [_pop presentPopoverFromrect:attachBtnFrame inVIEw:_sender permittedArrowDirections:UIPopoverArrowDirectionUp animated:NO]; });}总结
以上是内存溢出为你收集整理的UIPopoverController没有在iOS iOS 8中展示全部内容,希望文章能够帮你解决UIPopoverController没有在iOS iOS 8中展示所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)