成功失败回调写法 笔记

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

-(void)addFriendPhone:(NSString *)phone
             senderId:(NSString *)senderId
        DestinationId:(NSString *)destinationId
              Success:(void(^)(NSString *indicate))success
              Failure:(void(^)(NSString *indicate,NSError *error))failure;

返回
success(responseObject); 或  failure(error);