摘要:
1 CGSize height = self.view.bounds.size.height; 2 CGSize width = self.view.bounds.size.width; 3 CGFloat height = self.bounds.size.height; 4 CGFloat weight = self.bounds.size.width; 5 6 // 设置文字居中 7 self.titleLabel.textAlignment = NSTextAlignmentCenter; 8 // 设置字体大小 9 self.titleLabel.font = [UIFont s.. 阅读全文
摘要:
1 //主屏幕设为webView2 CGRect frame = [UIScreen mainScreen].applicationFrame;3 UIWebView *webView = [[[UIWebView alloc] initWithFrame:frame] autorelease];4 self.view = webView;1 UIApplication *app = [UIApplication sharedApplication];2 // 显示状态栏3 app.statusBarHidden = NO;4 ChangeController *index = [[Chan. 阅读全文
摘要:
1 id key = (id)kCFBundleVersionKey; 2 // 检测是否第一次使用这个版本 info.plist 3 NSDictionary *info = [NSBundle mainBundle].infoDictionary; 4 NSString *currentVersion = [info objectForKey:key]; 5 6 // NSLog(@"%@", currentVersion); 7 8 // 从沙盒中取出版本号 9 NSUserDefaults *defaults =[N... 阅读全文