爆红 。。消防队员

@interface BaseModel : NSObject{

   NSURLSessionDataTask *_dataTask;

}

@property (nonatomic,strong)   NSURLSessionDataTask*  dataTask;

-(void)getDate:(VMRequestMode)requestMode completionHandler:(void(^)( NSError *error))completionHandler;

@end


@implementation upBaseModel

-(void)getDate:(VMRequestMode)requestMode completionHandler:(void (^)(NSError *))completionHandler{

    NSInteger tm_page =1;

    if (requestMode == VMRequestMore) {

        tm_page = _page+1;

    }

//防止下面的大字体爆红,在上面的interface里注意加代码

    _dataTask = [Net getAlbum:tm_page completionHandler:^(WaterModel *model, NSError *error) {

       

    }];

   



你可能感兴趣的:(爆红 。。消防队员)