基础库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

25 rindas
692 B

  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. #define NativeCommandSuccess(msg) [[ZhiyingCommNativeResult alloc] initWithMsg:msg success:YES]
  4. #define NativeCommandFailed(msg) [[ZhiyingCommNativeResult alloc] initWithMsg: msg success: NO]
  5. #define NativeCommandNotImp [[ZhiyingCommNativeResult alloc] initWithMsg: @"native调用失败" success: NO]
  6. @interface ZhiyingCommNativeResult : NSObject
  7. // 状态
  8. @property (nonatomic, assign) BOOL success;
  9. // 消息
  10. @property (nonatomic, copy) NSString *msg;
  11. @property (nonatomic, strong) NSDictionary* data;
  12. - (instancetype)initWithMsg: (NSString*)msg success: (BOOL) success;
  13. - (NSDictionary*)toDict;
  14. @end
  15. NS_ASSUME_NONNULL_END