ios问题bug收录——1

 **[2713:59682] *** Assertion failure in -[MBProgressHUD show:], /Users/lu/Desktop/****/Pods/MBProgressHUD/MBProgressHUD.m:248

 **[2713:59682] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException‘, reason: ‘MBProgressHUD needs to be accessed on the main thread.‘

‘MBProgressHUD needs to be accessed on the main thread.‘这个错误主要翻译成,MBProgressHUD必须在主线程上运行。

而我是与js交互之后back回去的。。可见webView加载完毕,与js交互占用的不是主线程????

解决办法 :

     dispatch_async(dispatch_get_main_queue(), {

self.navigationController!.popViewControllerAnimated(true)

})

时间: 2024-08-28 21:55:48

ios问题bug收录——1的相关文章

我的IOS学习资源收录

IOS7视频教程-storyboard与UIApplication http://v.youku.com/v_show/id_XNzMxMjgwNzEy.html 关东升老师的ios视频教程 iPhone与iPad开发实战-ios经典应用剖析-7大项目实战开发 1第1讲工具类应用密码生成(Amuck Password Generator)57分钟   2第2讲工具类应用密码生成(Amuck Password Generator)52分钟   3第3讲工具类应用--密码生成(Amuck Passw

我的IOS学习资源收录2

本套教程出自ios教程网:http://ios.662p.com 预览ios教程网-源码天堂-7 1.iOS基础3-第一个iOS程序:QQ登录界面-ios视频教程网  ...2 iloveios2014-2-3 1017645 huasy2014-5-25 16:23 ios教程网-源码天堂-7 0.iOS基础2-iOS运行过程详解-ios视频教程网 iloveios2014-2-3 76443 想飞20032014-3-19 17:09 ios教程网-源码天堂-6 9.iOS基础1-iOS开发

iOS Orientation bug

Every September now, means pain for the iOS developers. Because you need not only to update to the latest iOS system, but also to support old iOS versions with newer version SDK. More stuff coming, equally amount of stuff deprecated. This bug I encou

delphi ios grid bug

BindSourceDB4.DataSet :=nil; BindSourceDB4.DataSet :=FDMemTable1; grid绑定后显示数据正常,第二次赋值BindSourceDB4.DataSet就报错了.RAD berlin 存在此问题. windows平台下正常,IOS下报错. Data.Bind.DBScope.pas function TCustomBindSourceDB.CreateSubDataSource: TDataSource; begin Result :=

ios常见bug

1.Unable to run app in Simulator An error was encountered while running (Domain = FBSOpenApplicationErrorDomain, Code = 4) 出现上述问题的时候: iOS Simulator -> Reset Contents and Settings... -> Reset 即可恢复正常. 1.Enable NSZombie Objects(开启僵尸对象) Enable NSZombie

iOS 证书Bug

Please verify that your device’s clock is properly set, and that your signing certificate is not expired. your signing certificate is not expired.就是你的证书无效了,去“钥匙访问串”里把无效的证书删除后,重新安装一个有效的就可以了. 也就是:进入钥匙串管理 把相关的证书删掉,然后在回到Xcode 选完 identity - Team 后选fix. 可能

PhoneGap2.9 IOS项目 BUG修复

1:IOS7状态栏覆盖页面问题: 前 后 当然这也是临时解决方案,最好还是兼容状态栏UI更美观 代码如下: if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {         CGRect viewBounds = [self.webView bounds];         viewBounds.origin.y = 20;         viewBounds.size.height = viewBounds.s

自己总结的 iOS ,Mac 开源项目以及库,知识点------持续更新

自己在 git  上看到一个非常好的总结的东西,但是呢, fork  了几次,就是 fork  不到我的 git 上,干脆复制进去,但是,也是认真去每一个每一个去认真看了,并且也是补充了一些,感觉非常棒,所以好东西要分享,为啥用 CN 博客,有个好处,可以随时修改,可以持续更新,不用每次都要再发表,感觉这样棒棒的 我们 自己总结的iOS.mac开源项目及库,持续更新.... github排名 https://github.com/trending,github搜索:https://github.

iOS开发 非常全的三方库、插件、大牛博客等等

UI 下拉刷新 EGOTableViewPullRefresh- 最早的下拉刷新控件. SVPullToRefresh- 下拉刷新控件. MJRefresh- 仅需一行代码就可以为UITableView或者CollectionView加上下拉刷新或者上拉刷新功能.可以自定义上下拉刷新的文字说明.具体使用看"使用方法". (国人写) XHRefreshControl- XHRefreshControl 是一款高扩展性.低耦合度的下拉刷新.上提加载更多的组件.(国人写) CBStoreHo