父控制器通知子控制器做事情

    SCAllOrderViewController *redController = [[SCAllOrderViewController alloc] init];

    redController.tag=1;

    [redController setTitle:@"全部"];

   

    

    SCWatiPayViewController *greenController = [[SCWatiPayViewController alloc] init];

    greenController.myordervc=self;

    

    [greenController setTitle:@"待付款"];

 

 

- (void)currentTabHasChanged:(NSInteger)selIndex{

    NSLog(@"%d",selIndex);

    if(selIndex==1){

        NSLog(@"%@",self.delegate);

        if([self.delegate respondsToSelector:@selector(MyOrderViewController:didwaitPayBtnclick:)]){

            [self.delegate MyOrderViewController:self didwaitPayBtnclick:1];

        }

    }

}

posted @ 2015-09-09 15:36  Athook  阅读(203)  评论(0编辑  收藏  举报