ios开发时出现“Obtaining the web lock from a thread other than the main thread or the web thread. UIKit should not be called from a secondary thread”,解决方法
To solve this try the following
dispatch_sync(dispatch_get_main_queue(), ^{
//Call the function from here
});
To solve this try the following
dispatch_sync(dispatch_get_main_queue(), ^{
//Call the function from here
});
展开
评论
点赞