iOS开发中UITabBarController的使用示例

2020-01-14 16:38:32王冬梅

/*    UIButton * button = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    button.frame = CGRectMake(100, 100, 100, 100);
    [button addTarget:self action:@selector(modalDismiss) forControlEvents:UIControlEventTouchUpInside];
    
    [self.view addSubview:button];*/
    
}

- (void)modalDismiss{
   //退出模态视图控制器
    [self dismissViewControllerAnimated:YES completion:^{ 
        NSLog(@"退出GoodBye");
    }];
}
@end

 

注:相关教程知识阅读请移步到IOS开发频道。