01 2019 档案

摘要:NSString *filePath = [documentsDirectory stringByAppendingPathComponent:@"xxx.txt"]; https://www.cnblogs.com/FBiOSBlog/p/5819418.html https://blog.csd 阅读全文
posted @ 2019-01-22 15:35 纯粹的code 阅读(861) 评论(0) 推荐(0)
摘要:NSString* str=@"hello";//存在代码区,不可变 NSLog(@"%@",str); //1.【字符串插入】 NSMutableString* str1=[[NSMutableStringalloc]initWithString:@"hello"];//存在堆区,可变字符串 NSLog(@"str... 阅读全文
posted @ 2019-01-22 10:06 纯粹的code 阅读(844) 评论(0) 推荐(0)
摘要:听着歌,想起了快一年没回家了,听说家那边变化了很多,说实话,我是不太喜欢原来的事物变得我不认识的样子,可能是对开始的东西有情感了,新的东西不适应吧,也说不上来。本来有很多话要说的,突然就无话了,就这样吧。 阅读全文
posted @ 2019-01-19 12:29 纯粹的code 阅读(149) 评论(0) 推荐(0)
摘要:1、随机生成数 2、字符串随机生成 阅读全文
posted @ 2019-01-16 11:50 纯粹的code 阅读(334) 评论(0) 推荐(0)
摘要:NSString *string = @"123"; // 1.字符串转int int intString = [string intValue]; // 2.int转字符串 NSString *stringInt = [NSString stringWithFormat:@"%d",intString]; // 3.字符串转float float floatString = [strin... 阅读全文
posted @ 2019-01-16 11:29 纯粹的code 阅读(743) 评论(0) 推荐(0)
摘要:今天做项目的时候遇到一个需求,就是子view视图弹出时,屏蔽掉父view的所有手势,然后想到用 UIGestureRecognizerDelegate代理方法,中间省一些文字(无奈脸),言归正传,NSStringFromClass其实是用来判断类型的,看代码 好尴尬的我。。。。屏蔽掉父view的所有 阅读全文
posted @ 2019-01-11 16:48 纯粹的code 阅读(313) 评论(0) 推荐(0)