摘要: 6.0以前用下面的这种方式- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return (toInterfaceOrientation != UIInterfaceOrientationMaskPortraitUpsideDown); } 6.0以后要追加一下方式- (BOOL)shouldAutorotate { return YES; } - (NSUInteger)supportedInterfaceOrientations { retur... 阅读全文
posted @ 2013-03-20 16:10 lizx 阅读(187) 评论(0) 推荐(0)
摘要: 开发iOS,必然少不了和XCode这个家伙打交道。平时我们调试自己的App的时候,最常用到的就是模拟器Simulator了,调试的时候,我们的App会自动被XCode安装到模拟器中去,不过:你知道模拟器这个家伙在哪儿吗?模拟器里面的目录结构是什么样的?你的App安装在模拟器的哪个目录里了?你的App里的结构是什么样的?不要读文档了,赶紧来看一看吧模拟器的目录在这里:/Users/你当前登陆的用户名/Library/Application Support/iPhone Simulator/在mac中终端下 取得 你当前登陆的用户名方法是在终端中输入:who am i 你的App被XCode Bu 阅读全文
posted @ 2013-03-20 13:46 lizx 阅读(203) 评论(0) 推荐(0)