2017年1月6日

摘要: [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.4]; [UIView setAnimationDelegate:self]; selected.frame =CGRectMake(1024-170,( 阅读全文
posted @ 2017-01-06 20:48 我就是一种相逢 阅读(128) 评论(0) 推荐(0)
摘要: 用([array count]==0 )来判断是否为空,都是坑,如果array为空的话,执行count就会直接报错,程序崩溃退出。 正确判断NSArray是否为空的方法: if(array != nil && ![array isKindOfClass:[NSNullclass]] && array 阅读全文
posted @ 2017-01-06 14:23 我就是一种相逢 阅读(346) 评论(0) 推荐(0)

导航