上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 38 下一页

2018年4月19日

git的使用

摘要: git init //把这个目录变成Git可以管理的仓库 git add README.md //文件添加到仓库 git add . //不但可以跟单一文件,还可以跟通配符,更可以跟目录。一个点就把当前目录下所有未追踪的文件全部add了 git commit -m "first commit" //把文件提交到仓库 git remote add origin git@githu... 阅读全文

posted @ 2018-04-19 17:42 高彰 阅读(93) 评论(0) 推荐(0)

2018年4月17日

iOS导航栏左边按钮图像变形

摘要: UIView *iconBgView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 25, 25)]; UIButton * backbtn =[UIButton addBtnImage:@"backimg" AndFrame:CGRectMake( 阅读全文

posted @ 2018-04-17 15:50 高彰 阅读(796) 评论(0) 推荐(0)

2018年3月19日

tableview简单例子和简单遍历

摘要: Instruction_set_list.h #import <UIKit/UIKit.h> @interface Instruction_set_list : UIViewController @property (strong,nonatomic)UITableView *tableviewIn 阅读全文

posted @ 2018-03-19 09:46 高彰 阅读(500) 评论(0) 推荐(0)

2018年2月23日

字符串的方法集合

摘要: NSString *last1 = [str1 substringToIndex:str1.length-2];//截去字符串结尾 NSString *last2 = [str2 substringFormIndex:str2.length-2];//截取字符串结尾 阅读全文

posted @ 2018-02-23 17:29 高彰 阅读(188) 评论(0) 推荐(0)

2018年2月6日

iOS tableview下拉刷新

摘要: - (void)viewDidLoad { [super viewDidLoad]; // 创建tableview [self setTableView]; [self setupRefresh]; } // 下拉刷新 - (void)setupRefresh { NSLog(@"setupRefresh -- 下拉刷新"); ... 阅读全文

posted @ 2018-02-06 16:08 高彰 阅读(1688) 评论(0) 推荐(0)

iOS 设置按钮圆切角(4个角都可随意设置)

摘要: https://yq.aliyun.com/ziliao/4779 设置按钮的4个角:左上:UIRectCornerTopLeft左下:UIRectCornerBottomLeft右上:UIRectCornerTopRight右下:UIRectCornerBottomRight 例子代码: UIBu 阅读全文

posted @ 2018-02-06 11:30 高彰 阅读(6198) 评论(0) 推荐(0)

2018年2月5日

iOS 自定义弹框

摘要: https://www.jianshu.com/p/b9bba621b295 阅读全文

posted @ 2018-02-05 17:58 高彰 阅读(178) 评论(0) 推荐(0)

2018年1月31日

字符串或者int转十六进制

摘要: //开始传输config文件 -(void)Qlife_sendConfigStart:(NSString *)fileData{ //读取文件 NSError *error = nil; NSString *str = [NSString stringWithContentsOfFile:fileData encoding:NSUTF8StringEncoding er... 阅读全文

posted @ 2018-01-31 15:19 高彰 阅读(2847) 评论(0) 推荐(0)

2018年1月24日

拖动tableView时收起键盘

摘要: _tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 94,fDeviceWidth,fDeviceHeight-108) style:UITableViewStylePlain]; _tableview.delegate =self;//写了这两句话哟调用delegate*/ _tableview.dataS... 阅读全文

posted @ 2018-01-24 16:09 高彰 阅读(288) 评论(0) 推荐(0)

2018年1月17日

iOS点击空白处或点击背景收起键盘

摘要: - (void)viewDidLoad{ [super viewDidLoad]; //添加手势 UITapGestureRecognizer *tap1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewTapped:)]; tap1.cancelsTouchesInView = NO; ... 阅读全文

posted @ 2018-01-17 17:08 高彰 阅读(1671) 评论(0) 推荐(0)

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 38 下一页

导航