随笔分类 -  iOS开发系列(基础)

摘要:PS:对于 Video 选项,会调用摄像头和麦克风,需要真机才能测试。UIImagePickerControllerQualityType(视频质量类型枚举):经过真机测试,录制30秒的视频,清晰度和大小由高到低为:UIImagePickerControllerQualityTypeIFrame12... 阅读全文
posted @ 2015-06-21 23:11 KenmuHuang 阅读(428) 评论(0) 推荐(0)
摘要:PS:对于 Camera 选项,会调用摄像头,需要真机才能测试。效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController 4 @property (strong, nonatomic) UIImag... 阅读全文
posted @ 2015-06-17 18:36 KenmuHuang 阅读(271) 评论(0) 推荐(0)
摘要:实现图片的老旧、色彩、旋转效果 (1)使用 StoryBoard 故事版布局界面;(2)使用 Core Image 框架的 CIFilter 过滤器;分别对应的过滤器名称是:CISepiaTone(棕黑色调)、CIHueAdjust(色彩调整)、CIStraightenFilter(纠正过滤器); ... 阅读全文
posted @ 2015-06-17 18:21 KenmuHuang 阅读(1362) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 #import 3 4 @interface ViewController : UIViewController5 @property (strong, nonatomic) IBOutlet UIButton *btnPlayMov... 阅读全文
posted @ 2015-06-17 18:08 KenmuHuang 阅读(1014) 评论(0) 推荐(0)
摘要:实现同样效果,更简单的方式如之前写的这篇随笔:使用 UICollectionView 实现网格化视图效果 实现思路:(1)自定义继承 UITableView的 KMGridView,定义并实现类似 UITableView 的数据源和委托协议;计算每行的单元格个数宽度,实现等比间距(2)使用 Stor... 阅读全文
posted @ 2015-06-17 18:02 KenmuHuang 阅读(265) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @endViewController.m 1 #import "ViewController.h" 2 #import "KMTriang... 阅读全文
posted @ 2015-06-17 17:43 KenmuHuang 阅读(279) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) UIImage *imgSnowflake;5 6 @endViewContr... 阅读全文
posted @ 2015-06-17 17:38 KenmuHuang 阅读(778) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) UIImageView *imgVAnimation;5 6 @endView... 阅读全文
posted @ 2015-06-17 17:20 KenmuHuang 阅读(413) 评论(0) 推荐(0)
摘要:(1)UIImageView 的动画操作,来自定义循环播放动画(不建议使用,内存消耗大)(2)CADisplayLink 是一个计时器,但是同 NSTimer 不同的是,CADisplayLink 的刷新周期同屏幕完全一致。例如在 iOS 中屏幕刷新周期是60次/秒,CADisplayLink 刷新... 阅读全文
posted @ 2015-06-16 18:40 KenmuHuang 阅读(1366) 评论(0) 推荐(0)
摘要:一张图片,通过混合模式绘制后,能得到不同效果的图片。这里的示例仅是测试效果;实际上可以通过不同程度的混合模式绘制,来得到符合需求的效果。效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @... 阅读全文
posted @ 2015-06-16 18:23 KenmuHuang 阅读(2184) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h 1 #import 2 #import "DropDownListViewController.h" 3 4 @interface ViewController : UITableViewController 5 @property (strong, ... 阅读全文
posted @ 2015-06-16 18:00 KenmuHuang 阅读(482) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h 1 #import 2 #import "HeaderViewDelegate.h" 3 #import "HeaderView.h" 4 5 @interface ViewController : UITableViewController 6 @p... 阅读全文
posted @ 2015-06-16 17:36 KenmuHuang 阅读(414) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSMutableArray *mArrDataList;5 @pr... 阅读全文
posted @ 2015-06-16 17:27 KenmuHuang 阅读(361) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSMutableArray *mArrDataSource;5 6... 阅读全文
posted @ 2015-06-16 16:42 KenmuHuang 阅读(781) 评论(0) 推荐(0)
摘要:类似的做法如之前这篇随笔:114自定义UITableViewCell(扩展知识:为UITableViewCell添加动画效果)相比之下:自定义 UITableViewCell的内容灵活,可根据需求调整展示效果,应用场景更广;一般适用于TableView自带的单元格样式无法实现的效果。效果如下:Vie... 阅读全文
posted @ 2015-06-16 15:10 KenmuHuang 阅读(507) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSMutableArray *mArrDataSource;5 6... 阅读全文
posted @ 2015-06-16 11:55 KenmuHuang 阅读(256) 评论(0) 推荐(0)
摘要:关键操作:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) NSMutableArray *mArrDataList;... 阅读全文
posted @ 2015-06-16 11:35 KenmuHuang 阅读(3259) 评论(1) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UITableViewController4 @property (strong, nonatomic) UISearchBar *searchBar;5 @property... 阅读全文
posted @ 2015-06-15 23:26 KenmuHuang 阅读(405) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) UIDatePicker *datePChoice;5 @property (... 阅读全文
posted @ 2015-06-15 21:19 KenmuHuang 阅读(261) 评论(0) 推荐(0)
摘要:效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @property (strong, nonatomic) UIDatePicker *datePChoice;5 6 @endViewC... 阅读全文
posted @ 2015-06-15 21:14 KenmuHuang 阅读(880) 评论(0) 推荐(0)

如果您看完本篇博文,觉得对您有所收获,请点击右下角的 [推荐]
如果您想转载,请注明出处(原创内容,请尊重个人劳动成果)
如果您有任何意见或建议,欢迎留言
感谢您的阅读,敬请关注我的后续博客文章