ios - UIApplication sharedApplication EXC BAD ACCESS in a UITextField category -


- (void)somemethod { bool isrighttoleft = ([uiapplication sharedapplication].userinterfacelayoutdirection == uiuserinterfacelayoutdirectionrighttoleft) } 

this causes exc bad access. i'm thinking because not thread safe , called many times. rules in using uiapplication sharedapplication? thanks!


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -