ios学习
文章平均质量分 76
crazyfly123
这个作者很懒,什么都没留下…
展开
-
objective-c block 详解
BlockApple 在C, Objective-C, C++加上Block這個延申用法。目前只有Mac 10.6 和iOS 4有支援。Block是由一堆可執行的程式組成,也可以稱做沒有名字的Function (Anonymous function)。如果是Mac 10.6 或 iOS 4.0 之前的平台可以利用 http://code.google.com/p/plblocks/转载 2013-07-02 17:45:37 · 307 阅读 · 0 评论 -
Quartz 各种绘制图形用法
// Only override drawRect: if you perform custom drawing.// An empty implementation adversely affects performance during animation.- (void)drawRect:(CGRect)rect{ CGContextRef context = UIGr转载 2013-07-04 07:57:34 · 370 阅读 · 0 评论 -
30多个iOS常用动画,带详细注释
// Only override drawRect: if you perform custom drawing.// An empty implementation adversely affects performance during animation.- (void)drawRect:(CGRect)rect{ CGContextRef转载 2013-07-04 07:31:55 · 639 阅读 · 0 评论 -
IOS多线程
IOS多线程有三种主要方法(1)NSThread(2)NSOperation(3)GCD下面简单介绍这三个方法 1.NSThread调用方法如下: 如函数需要输入参数,可从object传进去。 (1) [NSThread detachNewThreadSelector:@selector(threadInMainMethod:) toTarg转载 2013-07-03 16:34:19 · 376 阅读 · 0 评论 -
ios 开发 调用系统设置项
ios 开发 调用系统设置项在iOS应用程序中打开设备设置界面及其中某指定的选项界面 [[UIApplicationsharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General"]]; [[UIApplicationsharedApplication] openURL:[转载 2013-07-19 15:07:15 · 654 阅读 · 0 评论 -
ios自定义输出格式
方便调试,打印方便//DLog will output like NSLog only when the DEBUG variable is set#ifdef DEBUG# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);#e转载 2013-07-27 11:13:11 · 654 阅读 · 0 评论