摘要: 隐藏返回按钮self.navigationItem.hidesBackButton = YES;设置导航的透明度self.navigationController.navigationBar.translucent = NO;设置导航条的背景颜色 好使杠杠的[[UINavigationBar app... 阅读全文
posted @ 2015-10-10 17:57 上官元空 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 第一步,新建一个singleView的空白工程,如果新建,这里不做赘述了。第二步:因为地图开发相关的framework:MapKit.framework、CoreLocation.framework,至于如何添加,一般的ios相关博客都是有介绍。 在主界面的控制器ViewController.h文件... 阅读全文
posted @ 2015-10-10 17:56 上官元空 阅读(163) 评论(0) 推荐(0) 编辑
摘要: - (void)initTabbar{ ZPayViewController *zpay = [[ZPayViewController alloc]init]; ButlerController *butler = [[ButlerController alloc]init]; Detail1Vie... 阅读全文
posted @ 2015-10-10 17:56 上官元空 阅读(133) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; // UICollectionView 的使用 // layout参数 // UICollectionViewLayout 是一个布局类, 作用是给collectionView的cell提供布局(安排位置, 设置大 阅读全文
posted @ 2015-10-10 17:55 上官元空 阅读(160) 评论(0) 推荐(0) 编辑
摘要: CATextLayer *layer = [[CATextLayer alloc] init]; layer.frame = CGRectMake(0, 300, 100, 100); 字体模糊 layer.contentsScale = 10; 字体 layer.font = (__bridge ... 阅读全文
posted @ 2015-10-10 17:54 上官元空 阅读(149) 评论(0) 推荐(0) 编辑
摘要: [UIApplication sharedApplication].networkActivityIndicatorVisible = YES 阅读全文
posted @ 2015-10-10 17:54 上官元空 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 关于UItextField的LeftView属性 leftView属性赋值时 如果给两个textfield 同时设置这个属性 不能是同一个 View 如果是同一个View 这个页面就不能跳转 UIView *leftSpaceView = [[UIView alloc] initWithFram... 阅读全文
posted @ 2015-10-10 17:52 上官元空 阅读(152) 评论(0) 推荐(0) 编辑
摘要: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [_phoneNum resignFirstResponder]; _phoneNum.keyboardType = UIKeyboardTypeNumberPad; ... 阅读全文
posted @ 2015-10-10 17:51 上官元空 阅读(115) 评论(0) 推荐(0) 编辑
摘要: [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(changeTitle:) userInfo:nil repeats:YES]; 阅读全文
posted @ 2015-10-10 17:51 上官元空 阅读(84) 评论(0) 推荐(0) 编辑
摘要: self.webView = [[UIWebView alloc]initWithFrame:self.view.bounds]; self.webView.autoresizingMask = UIViewAutoresizingFlexibleHeight; [self.view addSubv... 阅读全文
posted @ 2015-10-10 17:50 上官元空 阅读(141) 评论(0) 推荐(0) 编辑