摘要: 1.readonly是只读2.readwrite是读写3.@property关键字:设置成员变量的属性(有读/写,赋值assign,retain,copy ,以及对多线程的支持nonatomic)。4.nonatomic非原子性访问,对属性赋值的时候不加锁,多线程并发访问会提高性能。如果不加此属性,... 阅读全文
posted @ 2015-08-21 14:48 江南花印孓 阅读(157) 评论(0) 推荐(0) 编辑
摘要: //初始化这个定时器,设置为0.5秒执行一次timerClick 事件 后边的repeats 参数意思是是否重复timer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(timerClick... 阅读全文
posted @ 2015-07-29 16:33 江南花印孓 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 现阶段我们所掌握的所谓技术,或许不应该称之为技术。因为,这里的技术,只是一些基础性的属性的应用,调用。其底层实现原理,大多是一知半解。而我觉得,我们追求技术的本身,寻找解决问题的答案,思考解决问题的方法,要比所谓技术有益的多。因为所谓各种技术何其多,做好一项的或许只是一门语言,并且这一门语言上切不能... 阅读全文
posted @ 2015-07-29 08:23 江南花印孓 阅读(127) 评论(0) 推荐(1) 编辑
摘要: -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row==1) { NSLog(@"======="); } ... 阅读全文
posted @ 2015-07-28 14:48 江南花印孓 阅读(122) 评论(0) 推荐(0) 编辑
摘要: NSString*str1 =@"1111";NSString*str2 =@"2222";[selfcustomizeStr:str1colorStr:str2];}- (void)customizeStr:(NSString*)str colorStr:(NSString*)colorStr{N... 阅读全文
posted @ 2015-07-23 09:31 江南花印孓 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 首先在viewDidLoad方法中加上如下代码: 1 if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) { 2 3 [self.tableView setSeparatorInset:UIEdgeInsets 阅读全文
posted @ 2015-07-17 16:48 江南花印孓 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 有些按钮在底部SCrollView滑动的时候却是不动的,原理是加在self.view上,再用bringSubviewToFront 函数讲其层级调为最上层。导航栏位置的按钮就用[self.navigationController.navigationBar bringSubviewToFront:b... 阅读全文
posted @ 2015-07-13 14:33 江南花印孓 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 刚刚在网上搜索到的,在此记录一下.便于以后使用://手机序列号 NSString* identifierNumber = [[UIDevice currentDevice] uniqueIdentifier]; NSLog(@"手机序列号: %@",identifierNumber); //手机别名... 阅读全文
posted @ 2015-06-25 15:34 江南花印孓 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1.时间控制器 但是需要注意只能在主线程中使用[NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(logBtnClick) userInfo:nil repeats:YES];2.延迟调用[self pe... 阅读全文
posted @ 2015-06-24 09:09 江南花印孓 阅读(92) 评论(0) 推荐(0) 编辑
摘要: UITextField *tf=[[UITextField alloc]initWithFrame:CGRectMake(40,60,240,40)];tf.placeholder=@"请输入账号";//给提示框加一个提示语tf.borderStyle=UITextBorderStyleRounde... 阅读全文
posted @ 2015-06-12 16:18 江南花印孓 阅读(138) 评论(0) 推荐(0) 编辑