BUTTON SHAPE on in device (iPhone) setting result app crash if its off app working

烈酒焚心 提交于 2019-12-01 23:51:08

This is usually happening because of the incompatiblity of some code in iOS 7.1.

And this must be happening in the device and not in simulator. Right?

The fact that Simulator runs on different hardware (the underlying Mac OS) versus the device's hardware can mean there are some occasional differences like these.

What you can do is put an "Exception Breakpoint" to find out which method is giving this error. Once you get the method, all you need to do is call that method in the main thread.

You can use :

dispatch_async(dispatch_get_main_queue(), ^{
  [self doSomething];
});

This should do the trick. Hope this helps. Thanks. :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!