这部分代码是做原型用的,现在已经不在项目里。
也没有什么特别的算法,所以就放在这里吧。
https://github.com/pppoe/MPMotionPattern
需要用到之前的“iOS逐帧处理录像-MPVideoProcessor”。
主要的算法是从TinyMotion这个项[......]
这部分代码是做原型用的,现在已经不在项目里。
也没有什么特别的算法,所以就放在这里吧。
https://github.com/pppoe/MPMotionPattern
需要用到之前的“iOS逐帧处理录像-MPVideoProcessor”。
主要的算法是从TinyMotion这个项[......]
一般在iOS上做录像都可以直接使用UIImagePickerController。
但有时候难免需要做逐帧的处理,比如实时的滤镜之类的。
参照这个帖子: A (quasi-) real-time video processing on iOS 把使用AVFoundation做录像的代码,做[......]
You may want this :]


Check it out from the github: Circle-Counter-Down
Here we go.
How to write a custom object which can be archived to a text file?
Usually, we use NSKeyedArchiver to serialize an object and write[......]
今天上班和同事讨论工程怎么组织的时候涉及到这个话题。
iOS开发上对delegate使用广泛。
记在这里,如果有新人Google到了,希望能有点帮助。
protocol和delegate完全不是一回事,放在一起说,只是因为我们经常在同一个头文件里看到这两个word。
protocol[......]
接上一篇Blog,这里用贝塞尔曲线来平滑多个点。
和样条插值不同,在多个点上作贝塞尔曲线的时候,曲线只穿过首尾两个点,中间的点都是作为控制点。
移动控制点,曲线也随之形变,可以造成一种拉扯的效果。在各种作图工具中,经常使用贝塞尔曲线来画曲线。一般的操作都是先画一条线段,然后可以通过拖动一[......]
曲线拟合是一个“数值计算“中的一个基本内容。在实际的项目中,使用拟合的目的就是从有限个点得到一条平滑曲线。曲线本身也是由点构成的,所以如何从有限个点得到曲线上的其它点,就是插值所关注的内容。[......]
OmniGridView
This is a half-finished grid view for iOS.
Cause Apple’s UITableView only allows us to add and reuse v[......]
Saved Blog
UITableViewCell是一个很常用的View,通常我们都是直接使用它。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *cellIdentifier = @"CellIdentifier"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier]; if (!cell) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:cellIdentifier] autorelease]; } cell.textLabel.text = [NSString stringWithFormat:@"Line: %d", indexPath.row]; return cell; } |
得到这个效果:

现在我们给tableViewCell加上点背景色:
b526fbfb61[......]
UIViewController的loadView
用UIViewController有一段时间了,才发现以前对loadView的理解完全不到位。
假如我们用Xcode新建一个View-based Application,在ViewController.m中加上
- (void)[......]