ios view中跳转控制器
作者:
缘來諟夢 | 来源:发表于
2020-11-09 10:11 被阅读0次 UITabBarController *rootVC = (UITabBarController *)self.window.rootViewController;
UINavigationController *navigation = (UINavigationController *)rootVC.selectedViewController;
NSString *url = self.urlArray[index];
if ([url containsString:@"http"]) {
MyHomeWebViewController *webVC = [[MyHomeWebViewController alloc] init];
webVC.isHtml = NO;
webVC.titleStr = @"公告";
webVC.loadUrlStr = url;
[navigation pushViewController:webVC animated:YES];
}
本文标题:ios view中跳转控制器
本文链接:https://www.haomeiwen.com/subject/ejtxbktx.html
网友评论