摘要:援引:http://www.cnblogs.com/wb145230/p/5266627.html
阅读全文
摘要:如果使用导航 第一个按钮方法: [self.navigationController pushViewController:secondVC animated:YES]; 第二个按钮方法: [self.navigationController popViewControllerAnimated:YE
阅读全文
摘要:UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID]; if(cell==nil){ cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellSty
阅读全文
摘要:援引:https://www.cnblogs.com/sunfuyou/p/6477539.html 在iOS7下,默认导航栏背景,颜色是这样的,接下来我们就进行自定义,如果你仅仅是更改一下背景和颜色,代码会很简单,不需要很复杂的自定义View来替代leftBarItem 更改导航栏的背景和文字Co
阅读全文
摘要://判断roadTitleLab.text 是否含有qingjoin if([roadTitleLab.text rangeOfString:@"qingjoin"].location !=NSNotFound)//_roaldSearchText { NSLog(@"yes"); } else {
阅读全文
摘要:第一种 UIImage *backButtonImage = [[UIImage imageNamed:@"back"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 25, 0, 0)]; [[UIBarButtonItem appearance] setBackButtonBackgroundImage:backButtonImage f...
阅读全文
摘要:@property (nonatomic ,strong)UIButton *btnVolsub;@property (nonatomic, strong) NSArray *dayArr;@property (nonatomic, strong) NSCondition *condLock;//条
阅读全文
摘要:援引 http://www.jianshu.com/p/202dd6a3ea8d 1/2. 创建pch文件 创建pch文件 2/2. 配置pch文件到项目 注意: * $(SRCROOT)/$(PRODUCT_NAME)/文件名.pch 例如本处为$(SRCROOT)/$(PRODUCT_NAME)
阅读全文
摘要:还有 self.view.layer.contents = (id)[UIImage imageNamed:@"你的背景图片"].CGImage; // 设置背景图片 NSImageView *imageView=[[NSImageView alloc]initWithFrame:CGRectMak
阅读全文
摘要:// // ViewController.m // 7.13蓝牙 // // Created by computer on 16/7/13. // Copyright © 2016年 computer. All rights reserved. // #import "ViewController.
阅读全文