You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
initWithTitle is showing UIMainThread issue and app crashes
(id)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitles:(NSString *)otherButtonTitles, ...
{
self = [super init]; // Error -[UIView init] must be used from main thread only
}
The text was updated successfully, but these errors were encountered:
It's true of UIKit in general that you may only call it from the main thread. Try stopping at the point of your call to -initWithTitle: using a breakpoint. Then inspect which thread is running.
initWithTitle is showing UIMainThread issue and app crashes
{
self = [super init]; // Error -[UIView init] must be used from main thread only
}
The text was updated successfully, but these errors were encountered: