/
IsEmpty

IsEmpty

static inline BOOL IsEmpty(id thing) {
  return thing == nil || ([thing isEqual:[NSNull null]]) // JS addition for coredata
  || ([thing respondsToSelector:@selector(length)] && [(NSData *)thing length] == 0) ||
  ([thing respondsToSelector:@selector(count)] && [(NSArray *)thing count] == 0);
}

Related content

NSMutableAttributedString
NSMutableAttributedString
More like this
Using OCLint in Xcode
Using OCLint in Xcode
More like this
NSHTTPCookieStorage
NSHTTPCookieStorage
More like this
How Best to Use Delegates and Notifications in Objective-C
How Best to Use Delegates and Notifications in Objective-C
More like this
NSLayoutConstraint-代码实现自动布局的函数用法说明
NSLayoutConstraint-代码实现自动布局的函数用法说明
More like this
Importing CommonCrypto in a Swift framework
Importing CommonCrypto in a Swift framework
More like this