摘要: ios 调试命令(oc用”po self“,swift用“frame variable self”或者"p self") 阅读全文
posted @ 2014-12-23 17:22 天下.无贼 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 参考link:1,http://stackoverflow.com/questions/15932041/how-can-i-add-a-watermark-in-a-captured-video-on-ios(添加水印)2,https://abdulazeem.wordpress.com/2012... 阅读全文
posted @ 2014-11-25 11:53 天下.无贼 阅读(4629) 评论(0) 推荐(0) 编辑
摘要: 1,https://github.com/st3fan/ios-openssl下载;2,将include和lib拖到工程中;3,添加include目录到“Header Seach Paths”中;4,编译,成功; 阅读全文
posted @ 2014-10-23 09:55 天下.无贼 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1,https://github.com/ArtFeel/AFViewShaker2.https://github.com/facebook/pop 阅读全文
posted @ 2014-08-11 16:03 天下.无贼 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1,auto layout非常好用,可用于屏幕适配,屏幕旋转的界面;2,auto layout使用必须是ios6以上系统;3,auto layout不确定的约束关系最好不要超过2层(就是说,控件a如果约束于控件b,控件b应该约束于superView),否则是出现意想不到的界面效果; 确定的则不受影... 阅读全文
posted @ 2014-07-10 14:10 天下.无贼 阅读(213) 评论(0) 推荐(0) 编辑
摘要: https://testflightapp.com/ 阅读全文
posted @ 2014-04-24 10:20 天下.无贼 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 一般是直接修改,setting --> search headers --> 中的path;还可以直接把,报错的文件delete,然后再add下;(xcode来帮你修改path); 阅读全文
posted @ 2014-04-23 11:44 天下.无贼 阅读(131) 评论(0) 推荐(0) 编辑
摘要: TPKeyboardAvoidinggit:https://github.com/michaeltyson/TPKeyboardAvoiding用法:1,将TPKeyboardAvoiding目录添加到工程中;2,在viewController对应的XIB中,加一个UIScrollView,将scrollView类属性设置为TPKeyboardAvoiding;3,在代码中让UIScrollView调用[self.scrollViewcontentSizeToFit];4,把你需要的textfield,textview加到UIScrollView上;OK,这样textfield,textvie 阅读全文
posted @ 2014-02-17 13:54 天下.无贼 阅读(3264) 评论(0) 推荐(0) 编辑
摘要: 在做ios应用开发的过程,难免遇到要创建 子view 和 自定义view的时候,归根到底,我们需要得到一个UIView;要得到这个UIView,大致有三种方法:1,创建一个UIViewController,带上一个XIB,得到的UIView为 UIViewController.view;2,创建一个XIB,然后直接load这个XIB;代码如下NSArray*nibView=[[NSBundlemainBundle]loadNibNamed:@"xib文件名字"owner:selfoptions:nil]; UIView*view=[[nibViewobjectAtIndex 阅读全文
posted @ 2014-01-26 12:18 天下.无贼 阅读(2752) 评论(2) 推荐(1) 编辑
摘要: 最近,在做ios7 适配时,偶然发现,在用actionSheet选择后(图1),弹出(图2)界面时,弹出界面如果是用 addSubView的话,会与actionSheet的弹出冲突,结果会使我们的弹出界面一闪就消失了。解决方法:在- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex回调函数中,加上下面一句[actionSheet dismissWithClickedButtonIndex:buttonIndex animated:NO]; 阅读全文
posted @ 2014-01-24 18:12 天下.无贼 阅读(472) 评论(0) 推荐(0) 编辑