上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: //1.原始图片 UIImage * image = [UIImage imageNamed:@"1.jpg"]; /****************core image******************/ //a.图片 CIImage * ciImage ... 阅读全文
posted @ 2015-08-06 14:35 Dadada胖纸er 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 在ios8中使用viewDidLayoutSubviews,应用正常运行,没有问题,但是应用在ios7上运行的时候,报错,导致应用崩溃,错误信息类似:Cannot find executable for CFBundle 0x78f8f220 </Library/Developer/CoreSimu... 阅读全文
posted @ 2015-04-24 20:34 Dadada胖纸er 阅读(899) 评论(0) 推荐(0) 编辑
摘要: 一.ALAssetsLibrary介绍ALAssetsLibrary提供了访问iOS设备下”照片”应用下所有照片和视频的接口;从ALAssetsLibrary中可读取所有的相册数据,即ALAssetsGroup对象列表;从每个ALAssetsGroup中可获取到其中包含的照片或视频列表,即ALAss... 阅读全文
posted @ 2015-04-18 15:00 Dadada胖纸er 阅读(414) 评论(0) 推荐(0) 编辑
摘要: dispatch_after中用的时间是纳秒,所以需要进行转换:desDelayInSeconds(目标时间,比如2s)* NSEC_PER_SEC double delayInSeconds = 0.3; // 创建延期的时间 0.3S,因为dispatch_time使用的时间是... 阅读全文
posted @ 2015-04-08 14:44 Dadada胖纸er 阅读(786) 评论(0) 推荐(0) 编辑
摘要: UICollectionView的header悬停,继承UICollectionViewFlowLayout,重写相关方法//// StickyHeaderLayout.h// Wombat//// Created by Todd Laney on 1/9/13.// Copyright (... 阅读全文
posted @ 2015-04-03 13:08 Dadada胖纸er 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: interactivePopGestureRecognizer是iOS7推出的解决VeiwController滑动后退的新功能,虽然很实用,但是坑也很多啊(比如在rootViewcontroller下,使用侧滑返回手势,可能就卡住了),这里给出如何完美解决interactivePopGestureR... 阅读全文
posted @ 2015-03-25 12:18 Dadada胖纸er 阅读(2644) 评论(0) 推荐(0) 编辑
摘要: push页面时,可调用hidesBottomBarWhenPushed进行隐藏。第一步,我们需要一些图片:各个选项的图标和tabbar的背景图片,最后还要一个透明的1x1像素的图片。第二步,新建一个工程,在工程内建一个继承于UITabBarController的类。第三步,首先写一个方法,返回一个U... 阅读全文
posted @ 2015-03-21 19:11 Dadada胖纸er 阅读(202) 评论(0) 推荐(0) 编辑
摘要: iOS7新添加的UIViewController的属性automaticallyAdjustsScrollViewInsets此属性默认为YES,这样UIViewController下如果只有一个UIScollView或者其子类,那么会自动留出空白,让scollview滚动经过各种bar下面时能隐约... 阅读全文
posted @ 2015-03-20 17:14 Dadada胖纸er 阅读(778) 评论(0) 推荐(0) 编辑
摘要: Key Value CodingKey Value Coding是cocoa的一个标准组成部分,它能让我们可以通过name(key)的方式访问property, 不必调用明确的property accssor, 如我们有个property叫做foo, 我们可以foo直接访问它,同样我们也可以用KVC... 阅读全文
posted @ 2015-01-08 19:37 Dadada胖纸er 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 不传递短信内容,可以调用下面的方法: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://466453"]];//sms://电话号码下面的方法会传递欲发送短信的内容- (IBAction)sendSM... 阅读全文
posted @ 2014-11-15 15:34 Dadada胖纸er 阅读(177) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页