抠代码小记录
使用手势UIGestureRecognizer对图像进行缩放、移动、旋转操作
http://www.oschina.net/code/snippet_54100_8105
UIView背景的渐变
http://www.oschina.net/code/snippet_54100_8115
UITextFiled键盘遮挡问题
http://www.oschina.net/code/snippet_54100_8633
[self performSelector:@selector(stopProgress) withObject:self afterDelay:delay];
--文件
http://blog.csdn.net/iphoneing/archive/2010/09/09/5872610.aspx
http://sdlqhjk.iteye.com/blog/899019
http://www.opensoce.com/?p=1298
//NSBundle,主要用于获取资源文件NSString *filepath = [[NSBundle mainBundle] pathForResource:@"文件名"ofType:@"后缀名"];//写入一些程序运行时需要用得数据,里面写入得数据在程序退出后会没有NSString *filepath = [NSTemporaryDirectory() stringByAppendingPathComponent: @"文件全名"];
CFUUIDRef uuid = CFUUIDCreate(NULL);CFStringRef uuidStr = CFUUIDCreateString(NULL, uuid);NSString *result = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@-%@", prefix, uuidStr]];CFRelease(uuidStr);CFRelease(uuid);