摘要: 转:http://blog.csdn.net/springpp1990/article/details/12451913 阅读全文
posted @ 2014-04-28 21:53 ygm900 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 时间差不够,导致闪屏 CATransition *animation = [CATransition animation]; animation.delegate = self; animation.duration = DurationTime ; //动画持续时间如果一个页面... 阅读全文
posted @ 2014-04-28 21:28 ygm900 阅读(170) 评论(0) 推荐(0) 编辑
摘要: UIView *parentView = nil; NSArray* windows = [UIApplication sharedApplication].windows; UIView* window = [windows objectAtIndex:0]; ... 阅读全文
posted @ 2014-04-28 21:10 ygm900 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 对于IPhone开发/XCode的初学者,如何在调试时查看变量的值是很头痛的事情。因为Xcode的expression 经常无法正确显示变量的值。但是强大的GDB可以很方便的帮我们查看变量的值。当执行到某断点时,在GDB窗口中使用po就可以查看变量.(po = print object)1)查看St... 阅读全文
posted @ 2014-04-28 20:28 ygm900 阅读(1230) 评论(0) 推荐(0) 编辑
摘要: GCD中弹窗的正确写法- (void)viewDidLoad{ //…… if (![self isStartLoading]) [self startLoading:nil]; //loading界面放在这可以正常显示,速度比较快 dispatch_a... 阅读全文
posted @ 2014-04-28 15:36 ygm900 阅读(400) 评论(0) 推荐(0) 编辑
摘要: dispatch_group_async可以实现监听一组任务是否完成,完成后得到通知执行其他的操作。这个方法很有用,比如你执行三个下载任务,当三个任务都下载完成后你才通知界面说完成的了。下面是一段例子代码:[cpp]dispatch_queue_t queue = dispatch_get_glob... 阅读全文
posted @ 2014-04-28 14:45 ygm900 阅读(10266) 评论(0) 推荐(0) 编辑
摘要: IniOS 7, Apple completely revamped the user interface to give it a fresh and modern look. One of the problems, I have with the new look is the lack of... 阅读全文
posted @ 2014-04-28 11:28 ygm900 阅读(1539) 评论(0) 推荐(0) 编辑
摘要: 方法一:如果是Xcode 5的话步骤为 点击项目名称->Build Settings->搜索 Architectures 这个里面的原始的值是Standard architectures(armv7,armv7s,arm64) 点击这个值,在下拉列表框中选择Standard architecture... 阅读全文
posted @ 2014-04-28 10:47 ygm900 阅读(6970) 评论(0) 推荐(0) 编辑