我该如何取消订阅者?

时间:2016-01-23 13:19:31

标签: ios

@weakify(self)
[[self.listModel.firstLoadCommand execute:nil] subscribeNext:^(NSNumber *nType) {


    @strongify(self)
    [HUDManager removeHUDFromView:self.view];

    self.isFirstRequest = NO;

    NSInteger pageIndex = nType.integerValue;
    //Select some page
    [self.listTabBar selectTabBarAtIndex:pageIndex ];


} error:^(NSError *error)
 {
     @strongify(self)

     self.isFirstRequest = NO;

     [HUDManager removeHUDFromView:self.view];

     JKBaseSearchViewController *viewController = [_pageArray objectOrNilAtIndex:0];

     [HUDManager showNonNetWorkHUDInView:viewController.view];

 }];

现在,
  我用信号发送请求,但是网络服务没有激活, 我发现控制器等了一分钟,我希望当我弹出这个控制器时,它是免费的!怎么解决这个问题?谢谢!!

0 个答案:

没有答案