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

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -