【发布时间】:2013-07-12 02:07:48
【问题描述】:
当我的应用启动时,用户首先看到的是UITabBar 中的网络视图。不幸的是,在网页加载之前,他们盯着一个空白的白色屏幕减去UITabBar。网页加载后如何隐藏标签?
firstviewcontroller.h:
@property (strong, nonatomic) IBOutlet UIWebView *webPage;
firstviewcontroller.m:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString *fullURL = @"http://example.com";
NSURL *url = [NSURL URLWithString:fullURL];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[_webPage loadRequest:requestObj];
}
【问题讨论】:
标签: objective-c cocoa-touch uiwebview uitabbar