首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

抠代码初记录

2012-11-08 
抠代码小记录使用手势UIGestureRecognizer对图像进行缩放、移动、旋转操作http://www.oschina.net/code/snip

抠代码小记录

使用手势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: @"文件全名"];


--UUID
CFUUIDRef uuid = CFUUIDCreate(NULL);CFStringRef uuidStr = CFUUIDCreateString(NULL, uuid);NSString *result = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@-%@", prefix, uuidStr]];CFRelease(uuidStr);CFRelease(uuid);

热点排行