上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: 阅读全文
posted @ 2015-05-11 14:15 菜鸟程序猿 阅读(99) 评论(0) 推荐(0) 编辑
摘要: AGi18n :https://github.com/angelolloqui/AGi18n可以简单地本地化你的iOS app,从代码和XIB文件中提取文本转化成可本地化的字符串,且不会改变XIB文件。THLabel :https://github.com/MuscleRumble/THLabelT... 阅读全文
posted @ 2015-05-06 22:49 菜鸟程序猿 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.99css.com/1321/在 iOS 项目开发中,经常会用到第三方的源代码,CocoaPods 就是为了方便管理这些源码的工具。在官方教程里面,安装看起来非常简单$ [sudo] gem install cocoapods$ pod setup不过对于我这种从 win... 阅读全文
posted @ 2015-05-06 10:26 菜鸟程序猿 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-05-05 11:15 菜鸟程序猿 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1. 建一个 UIView的子类(MyView.h/MyView.m)2. 建一个 View类型的XIB3. 把xib的file‘s owner设为MyView4. 在.h文件里加上@property (nonatomic, retain) IBOutlet UIView *contentView;... 阅读全文
posted @ 2015-04-28 14:48 菜鸟程序猿 阅读(1199) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dadage456.blog.163.com/blog/static/303107442014911417527161、创建一个空白的UIViewController2、将UIScrollView添加到UIView控件中,并设置UIScrollView针对父视图UIView的co... 阅读全文
posted @ 2015-04-28 10:34 菜鸟程序猿 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 到Storyboard中,选择collection view controller中的"Collection View"。在Attributes inspector中,选择"Section Header"和"Section Footer",一旦选中你就会在屏幕中看到下面的的显示:最重要的是,我们必须... 阅读全文
posted @ 2015-04-24 11:06 菜鸟程序猿 阅读(2415) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad { [super viewDidLoad]; NSDateComponents *fromDateComponents = [[NSDateComponents alloc]init]; NSDateComponents *toDat... 阅读全文
posted @ 2015-04-22 16:05 菜鸟程序猿 阅读(1301) 评论(0) 推荐(0) 编辑
摘要: 设置View borderWidth/cornerRadius/borderColor为了兼容CALayer 的KVC ,你得给CALayer增加一个分类CALayer+BorderColor.h#import #import @interface CALayer (BorderColor)@pro... 阅读全文
posted @ 2015-04-14 16:55 菜鸟程序猿 阅读(533) 评论(0) 推荐(0) 编辑
摘要: /** * 指定Size压缩图片 (图片会压缩变形) * * @param image 原图 * @param size 压缩size * * @return 压缩后的图片 */-(UIImage*)OriginImage:(UIImage *)image scaleToSize:(CGS... 阅读全文
posted @ 2015-04-08 21:14 菜鸟程序猿 阅读(1671) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 19 下一页