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

后端 未结 1 1582
甜味超标
甜味超标 2021-01-22 00:38

Recently i switch my app to iOS 7 compatibility and the app working fine but if i switched on the Button Shape option (Available in iOS 7.1) in device setting (Setting--> Access

1条回答
  •  旧巷少年郎
    2021-01-22 01:16

    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. :)

    0 讨论(0)
提交回复
热议问题