iOS开发中的一些操作集锦

1.git中取得项目的git仓库

终端命令:$ git clone [url]

例如:$ git clonegit://github.com/schacon/grit.git


2.Xcode6以后工程中添加pch文件

第一步:Command+N,打开新建文件窗口:ios->other->PCH file,创建一个pch文件:“工程名-Prefix.pch”:

第二步:

          2.1将Precompile Prefix Header为YES,预编译后的pch文件会被缓存起来,可以提高编译速度。

          2.2将building setting中的precompile header选项的路径添加“$(SRCROOT)/项目名称/pch文件名”(例如:$(SRCROOT)/pictest/test.pch)


3.hosts修改方法

/private/etc


4.可复用且高度解耦的iOS用户统计实现

http://www.cocoachina.com/ios/20160421/15912.html


你可能感兴趣的:(iOS开发中的一些操作集锦)