設置應用于iOS 9 :使用UIAlertController 跳轉到系統(tǒng)設置的時候出現(xiàn)如下bug或警告:
_BSMachError: port 7113; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"
_BSMachError: port 7113; (os/kern) invalid name (0xf) "Unable to deallocate send right"
解決方法:
通過使用多線程延遲調用解決這個問題,代碼如下:
dispatch_after(0.2, dispatch_get_main_queue(), ^{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];
});