08 2016 档案

摘要:pragma mark 旋转动画 (void)rotate360DegreeWithImageView:(UIImageView )imageView { CABasicAnimation animation = [ CABasicAnimation animationWithKeyPath: @" 阅读全文
posted @ 2016-08-29 17:18 GJR 阅读(192) 评论(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 阅读(1166) 评论(0) 推荐(0)
摘要:需求 很多app(如淘宝、美团等)在启动图加载完毕后,还会显示几秒的广告,一般都有个跳过按钮可以跳过这个广告,有的app在点击广告页之后还会进入一个广告页面,点击返回进入首页。今天我们就来开发一个广告页面,效果如下。 思路 1.广告页加载思路。广告页的内容要实时显示,在无网络状态或者网速缓慢的情况下 阅读全文
posted @ 2016-08-29 11:25 GJR 阅读(469) 评论(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 阅读(205) 评论(0) 推荐(0)
摘要:(void)setLabelSpace:(UILabel )label withValue:(NSString )str withFont:(UIFont )font { NSMutableParagraphStyle paraStyle = [[NSMutableParagraphStyle al 阅读全文
posted @ 2016-08-29 11:04 GJR 阅读(1316) 评论(0) 推荐(0)
摘要:NSDictionary attributes = @{NSFontAttributeName:[UIFont systemFontOfSize:14],NSForegroundColorAttributeName:[UIColor whiteColor]}; CGSize captionSize 阅读全文
posted @ 2016-08-02 15:08 GJR 阅读(304) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示