您的位置:首页 > Web前端 > React

ReactNative开发中如何去掉iOS状态栏的"Loading from..."

2016-02-01 09:42 691 查看
全局搜索

Loading from
将相关的方法注视掉即可
- (void)showWithURL:(NSURL *)URL
{
// if (!isEnabled) {
return;
// }

// dispatch_async(dispatch_get_main_queue(), ^{

// _showDate = [NSDate date];
// if (!_window && !RCTRunningInTestEnvironment()) {
// CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
// _window = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, screenWidth, 22)];
// _window.backgroundColor = [UIColor blackColor];
// _window.windowLevel = UIWindowLevelStatusBar + 1;
//
// _label = [[UILabel alloc] initWithFrame:_window.bounds];
// _label.font = [UIFont systemFontOfSize:12.0];
// _label.textColor = [UIColor grayColor];
// _label.textAlignment = NSTextAlignmentCenter;
//
// [_window addSubview:_label];
// [_window makeKeyAndVisible];
// }
//
// NSString *source;
// if (URL.fileURL) {
// source = @"pre-bundled file";
// } else {
// source = [NSString stringWithFormat:@"%@:%@", URL.host, URL.port];
// }

// _label.text = [NSString stringWithFormat:@"Loading from %@...", source];
// _window.hidden = NO;

// });
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios native xcode