if ( ! (value == nil || [value isEqualToString:@""])) {
// nullじゃない場合の処理
}
※ObjCはnilの場合メソッドの返り値に0を返します。こちらの方が良い模様。
if ([value length] > 0)
More than 5 years have passed since last update.
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