2018年2月22日

ivar_getTypeEncoding(随手记)

摘要: 阅读全文

posted @ 2018-02-22 10:26 M&W 阅读(195) 评论(0) 推荐(0) 编辑

2017年3月14日

iOS 传感器(随手记)

摘要: 感兴趣的看官可以通过这篇文章http://www.jianshu.com/p/fb03e978bf87了解iPhone内置传感器 传感器的应用 距离传感器应用(Proximity sensor直译) //AudioPlayer之通过距离传感器切换听筒和扬声器 - (void)addSensorObs 阅读全文

posted @ 2017-03-14 10:56 M&W 阅读(174) 评论(0) 推荐(0) 编辑

2017年2月15日

CoreText.framework(转)

摘要: IOS CoreText.framework 基本用法 IOS CoreText.framework 段落样子CTParagraphStyle CoreText.framework 行 CTLineRef CoreText.framework 图文混排 阅读全文

posted @ 2017-02-15 17:14 M&W 阅读(102) 评论(0) 推荐(0) 编辑

2017年1月10日

HomeBrew 安装 PHP7.1(随手记)

摘要: HomeBrew 安装 PHP7.1 $ brew update $ brew tap homebrew/dupes $ brew tap homebrew/php $ brew update $ brew install php71 一、安装常见问题: 1、找不到libphp7.so 解决方法: 阅读全文

posted @ 2017-01-10 15:01 M&W 阅读(17103) 评论(3) 推荐(1) 编辑

2016年12月27日

数组随机排序(随手记)

摘要: 注1:集合是无序的且不保证随机的 注2:arc4random_uniform(x),可以用来产生0~(x-1)范围内的随机数,不需要再进行取模运算 方法一: - (NSMutableArray *)randomArrayFrom:(NSArray*)oldArray { NSMutableArray 阅读全文

posted @ 2016-12-27 15:05 M&W 阅读(198) 评论(0) 推荐(0) 编辑

2016年11月10日

UITextField(一)监听输入内容的变化(随手记)

摘要: //添加事件UIControlEventEditingChanged [textField addTarget:self action:@selector(textFieldDidChange:) forControlEvents:UIControlEventEditingChanged]; // - (void)textFieldDidChange:(UITextField *)textFie... 阅读全文

posted @ 2016-11-10 15:42 M&W 阅读(405) 评论(0) 推荐(0) 编辑

安装CocoaPods流程及常见问题(Xcode->homebrew->RVM->Ruby->CocoaPods)

摘要: 一、HomeBrew 1、(转)HomeBrew的安装和简单使用 http://blog.csdn.net/maojudong/article/details/7918291 2、homebrew的简单安装 终端输入 ruby -e "$(curl -fsSL https://raw.githubu 阅读全文

posted @ 2016-11-10 15:30 M&W 阅读(743) 评论(0) 推荐(0) 编辑

导航