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];
}
}
}
时间: 2024-10-31 18:51:01