- 博客(10)
- 收藏
- 关注
转载 由一种颜色得到对应的浅色及深色
转载:http://stackoverflow.com/questions/11598043/get-slightly-lighter-and-darker-color-from-uicolor- (UIColor *)lighterColorForColor:(UIColor *)c{ CGFloat r, g, b, a; if ([c getRed:&r gre
2015-03-03 09:37:18
811
原创 github上好用的第三方库
1.GRMustache整合html与ios原生代码。编写html模版后就可按照格式套用。https://github.com/groue/GRMustache2.MWPhotoBrowser图片浏览器。左右滑动预览图片,缓存图片,放大缩小,分享等。类似ios原生图片浏览器。ps:升级到ios8后,会出现滑动到某张图后不能继续滑动,需要先缩放才能继续滑动。htt
2015-02-27 17:08:19
509
原创 UIImageView中播放动画
NSArray *gifList = @[ [UIImage imageNamed:@"speekBtn_1"], [UIImage imageNamed:@"speekBtn_2"],[UIImage imageNamed:@"speekBtn_3"]];self.speekBtn.imageView.animationImages = gifList;self.speekBtn.image
2015-02-02 11:12:46
276
转载 fatal error: malformed or corrupted AST file: 'Unable to load module Darwin.pcm 问题解决
原帖:http://blog.youkuaiyun.com/langeldep/article/details/38928303xcode 6 运行带有第三方库的时候报错fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/gapple/Library/Developer/Xcode/DerivedDa
2015-01-16 17:29:46
393
原创 cocos2d下载及安装
1.下载cocos2d。下载地址:https://code.google.com/p/cocos2d-iphone/ (最新为2.1)2.安装。打开Terminal终端,进入cocos2d目录,输入./install-templates.sh3.打开xcode,新建cocos2d项目。ps:运行项目报错 command failed with exit co
2015-01-15 16:01:30
624
原创 CocoaPods使用
1.安装CocoaPod2.检查是否安装成功which pod 如果输出/usr/bin/pod则表示安装成功3.检查想导入的库是否支持CocoaPods (例如MWPhotoBrowser)pod search MWPhotoBrowser 4.到项目所在目录创建Podfile来告诉CocoaPods需要下载哪个库vim P
2015-01-15 15:59:47
305
转载 iOS中添加UITapGestureRecognizer手势识别后,UITableView的didSelectRowAtIndexPath失效
参考:http://blog.youkuaiyun.com/iosevanhuang/article/details/8830499点击底部空白区域隐藏键盘1.先给tableView注册手势。UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selecto
2015-01-15 15:41:30
443
原创 Foundation 相关
1.NSString查找是否包含某字符串:[str rangeOfString@"xxx"].length字符串转数组NSString *str = [NSString stringWithFormat:@"a_b_c_d"];NSArray *ary = [str componentsSeparatedByString:@"_"]; //ary 为[a,b
2015-01-15 11:25:38
271
原创 UIKit 相关
1.UILabel更改字体大小label.font = [UIFont systemFontOfSize:#fontSize#];
2015-01-15 11:00:15
249
原创 xcode6 错误
1.Error ITMS-9000: "Invalid image path - No image found at the path referenced under key CFBundleIcons AppIcon120x120解决方案:icon图标中删除CarPlay图标。参考:http://stackoverflow.com/questions/25956210/error-
2015-01-04 12:07:42
741
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人