1 2 3 4 5 ··· 13 下一页
摘要: http://www.iosask.com/?q-227.html 阅读全文
posted @ 2015-10-30 17:15 童话DY 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 继承UITabBarController 在ctrl里面执行如下语句-(void)removeSystemBar{ UIView *transitionView = [self.view.subviews objectAtIndex:0]; transitionView.frame = CGR... 阅读全文
posted @ 2015-09-18 10:49 童话DY 阅读(104) 评论(0) 推荐(0) 编辑
摘要: + (UIImage *)blurWithCoreImage:(UIImage *)sourceImage withFrame:(CGRect)frame{ CIImage *inputImage = [CIImage imageWithCGImage:sourceImage.CGImage]; ... 阅读全文
posted @ 2015-06-16 15:30 童话DY 阅读(442) 评论(0) 推荐(0) 编辑
摘要: + (UIImage *)takeSnapshotOfView:(UIView *)view{ CGFloat reductionFactor = 1; UIGraphicsBeginImageContext(CGSizeMake(view.frame.size.width/reductionF... 阅读全文
posted @ 2015-06-16 15:28 童话DY 阅读(246) 评论(0) 推荐(0) 编辑
摘要: CGSize textSize = CGSizeZero; if ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0) { textSize = [text sizeWithAttributes: @{NSFontAt... 阅读全文
posted @ 2015-05-22 11:51 童话DY 阅读(525) 评论(0) 推荐(0) 编辑
摘要: CAEmitterLayeremitterCells:CAEmitterCell对象的数组,被用于把粒子投放到layer上birthRate:可以通俗的理解为发射源的个数,默认1.0。当前每秒产生的真实粒子数为=CAEmitterLayer的birthRate*子粒子的birthRate;lifet... 阅读全文
posted @ 2015-05-01 14:48 童话DY 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 使用CAAnimationGroup类进行复数动画的组合。代码如下:/* 动画1(在X轴方向移动) */CABasicAnimation *animation1 = [CABasicAnimation animationWithKeyPath:@"transform.translation.x"];... 阅读全文
posted @ 2015-05-01 11:34 童话DY 阅读(685) 评论(0) 推荐(0) 编辑
摘要: keyPath分为:transform.scale transform.scale.x transform.scale.y transform.scale.z CABasicAnimation* scale = [CABasicAnimation animationWithKeyPath:@"tr... 阅读全文
posted @ 2015-05-01 11:20 童话DY 阅读(496) 评论(0) 推荐(0) 编辑
摘要: x轴旋转:CABasicAnimation *theAnimation;theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.rotation.x"];theAnimation.duration=1;theAnimation.... 阅读全文
posted @ 2015-05-01 11:07 童话DY 阅读(484) 评论(0) 推荐(0) 编辑
摘要: NSDictionary* dic1 = [[NSDictionary alloc]initWithObjectsAndKeys:font,NSFontAttributeName,[@"b5b5b5" toUIColor], NSForegroundColorAttributeName,nil... 阅读全文
posted @ 2014-11-17 11:20 童话DY 阅读(134) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 13 下一页