摘要: pragma mark 旋转动画 (void)rotate360DegreeWithImageView:(UIImageView )imageView { CABasicAnimation animation = [ CABasicAnimation animationWithKeyPath: @" 阅读全文
posted @ 2016-08-29 17:18 GJR 阅读(189) 评论(0) 推荐(0) 编辑
摘要: // GCD倒计时 (void)startCoundown { __block int timeout = showtime + 1; //倒计时时间 + 1 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIO 阅读全文
posted @ 2016-08-29 14:55 GJR 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: 需求 很多app(如淘宝、美团等)在启动图加载完毕后,还会显示几秒的广告,一般都有个跳过按钮可以跳过这个广告,有的app在点击广告页之后还会进入一个广告页面,点击返回进入首页。今天我们就来开发一个广告页面,效果如下。 思路 1.广告页加载思路。广告页的内容要实时显示,在无网络状态或者网速缓慢的情况下 阅读全文
posted @ 2016-08-29 11:25 GJR 阅读(451) 评论(0) 推荐(0) 编辑
摘要: (int)convertToInt:(NSString )strtemp { int strlength = 0; char p = (char )[strtemp cStringUsingEncoding:NSUnicodeStringEncoding]; for (int i=0 ; i 阅读全文
posted @ 2016-08-29 11:06 GJR 阅读(203) 评论(0) 推荐(0) 编辑
摘要: (void)setLabelSpace:(UILabel )label withValue:(NSString )str withFont:(UIFont )font { NSMutableParagraphStyle paraStyle = [[NSMutableParagraphStyle al 阅读全文
posted @ 2016-08-29 11:04 GJR 阅读(1308) 评论(0) 推荐(0) 编辑