
ios开发
xxxxxxfj
这个作者很懒,什么都没留下…
展开
-
git学习笔记
git学习笔记总结自这里写链接内容 - git的创建 1创建空目录 $ mkdir learngit $ cd learngit $ pwd /Users/xufanjie/learngit 2将目录变为git管理的仓库``` $ git init Initialized empty Git repository in /Users/xufanj原创 2016-05-05 14:19:17 · 361 阅读 · 0 评论 -
关于深拷贝和浅拷贝
以NSString与NSMutableString举例 NSMutableString 拷贝 NSString NSString *str1 = @"xfj"; NSMutableString *str2 = [str1 mutableCopy]; [str2 appendString:@"123"]; NSLog(@"%@ %@",str1,str2); N原创 2016-11-24 21:42:23 · 377 阅读 · 0 评论 -
单例模式的宏抽取
#define singleH(name) +(instancetype)share##name;#if __has_feature(objc_arc)#define singleM(name) static id _instance ;\ + (instancetype)allocWithZone:(struct _NSZone *)zone{\ static dispatch_once_t on原创 2016-11-24 21:52:53 · 361 阅读 · 0 评论 -
关于UIScrollView中UIImageView的图片缩放问题
回看以前的代码 发现自己在还没有接触UIGestureRecognizer时就实现过UIScrollView中UIImageView的缩放 发现UIScrollView有一个代理方法可以实现 核心代码:@interface ViewController ()<UIScrollViewDelegate>@property(nonatomic, strong) UIScrollView *mainS原创 2016-11-27 15:55:33 · 1187 阅读 · 0 评论