[object isEqualToString:@"string"]; で、object が NSNull の場合がある時、[@"string" isEqualToString:object] にするとよい。
API などで取得したデータを評価する時にこの問題が起こる事がある。
More than 5 years have passed since last update.
[NSNull isEqualToString:] クラッシュする件
Last updated at Posted at 2014-04-22
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme