当我的应用程序启动时,用户首先看到的是UITabBar
. 不幸的是,在网页加载之前,他们盯着一个空白的白色屏幕减去UITabBar
. 网页加载后如何隐藏标签?
第一视图控制器.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];
}