lonelysoul

Happy share, happy life.

导航

2014年1月24日 #

CocoaPods管理本地库简单步骤

摘要: 这个纯属好玩!!!注意:您的电脑要先安装CocoaPods 比如你自己写了一个工具类(可视为第三方库啦),前提:你想利用CocoaPods来管理这个类,而你又不想很麻烦的把你写的类上传到github上,这时候就可以利用CocoaPods来管理本地库,具体步骤如下: 1、首先我有一个工具类(也就是你所谓的本地库)包括MyTool.h和MyTool.m两个文件,然后我创建一个目录~/Documents/LocalParty/Test/,在终端(Terminal)中进入该目录下,为了让该目录成为一个git repository,输入命令 $ git init回车,这时候该目录就是一个git仓... 阅读全文

posted @ 2014-01-24 16:54 lonelysoul 阅读(1102) 评论(0) 推荐(0) 编辑

CocoaPods问题记录

摘要: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/MichaeldeMac-mini:SimpleWeather md004$ pod installAnalyzing dependencies[!] Pod::Executable pullUpdating e58ae61..794df03error: Your local changes to the following files would be overwritten by merge:ARAnalytics/2.4.0/ARAnalytics.podspe 阅读全文

posted @ 2014-01-24 14:54 lonelysoul 阅读(648) 评论(0) 推荐(0) 编辑

UIPanGestureRecognizer下方法

摘要: - (IBAction)handlePan:(UIPanGestureRecognizer *)sender{ // translationInView: 滑动的偏移量 CGPoint point = [sender translationInView:self.view]; // locationInView: 手势在self.view中的位置 // 此方法属于UIGestureRecognizer类 CGPoint point1 = [sender locationInView:self.view]; NSLog(@"translation:%@ location:%@" 阅读全文

posted @ 2014-01-24 14:51 lonelysoul 阅读(335) 评论(0) 推荐(0) 编辑