火星人驾到

2011年5月21日

Xcode快捷键

摘要: 可能有些新手刚用mac,不知与windows键对应,现在说明一下,command相当于ms键盘的win键,option相当于alt,键值一样,系统偏好设置里面可以更改。xcode相关:关于xcode可设偏好设置 command+,清空缓存 可设隐藏xcode command+h隐藏其它 command+option+h显示全部 可设退出xcode command+q文件相关:新建项目 command+shift+n新建文件 command+n新建空文件 command+control+n打开 command+o在新窗口中打开 command+option+o快速打开 command+shift 阅读全文

posted @ 2011-05-21 16:58 火星人驾到 阅读(283) 评论(0) 推荐(0) 编辑
Iphone 视图跳转方法总结

摘要: 1. AddInfo *control = [[AddInfo alloc] init]; [self presentModalViewController:control animated:YES]; [control release]; 描述:通过事件进行跳转 [self dismissModalViewControllerAnimated:YES]; 描述:通过事件进行返回。 2. [self.navigationController pushViewController:subTableViewController animated:YES]; 描述:通过 NSNavigationBa 阅读全文

posted @ 2011-05-21 16:28 火星人驾到 阅读(505) 评论(0) 推荐(0) 编辑
iPhone object-c 的reflection使用方法

摘要: // Without reflection Foo *foo = [[Foo alloc] init]; [foo hello]; // With reflection Class cls = NSClassFromString(@"Foo"); id foo = [[cls alloc] init]; SEL selector = NSSelectorFromString(@"hello"); [foo performSelector:selector withObject:nil]; 阅读全文

posted @ 2011-05-21 15:06 火星人驾到 阅读(194) 评论(0) 推荐(0) 编辑