摘要: http://www.iosask.com/?q-227.html 阅读全文
posted @ 2015-10-30 17:15 童话DY 阅读(103) 评论(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 阅读(443) 评论(0) 推荐(0) 编辑
摘要: + (UIImage *)takeSnapshotOfView:(UIView *)view{ CGFloat reductionFactor = 1; UIGraphicsBeginImageContext(CGSizeMake(view.frame.size.width/reductionF... 阅读全文
posted @ 2015-06-16 15:28 童话DY 阅读(247) 评论(0) 推荐(0) 编辑
摘要: CGSize textSize = CGSizeZero; if ([[UIDevice currentDevice].systemVersion floatValue] >= 7.0) { textSize = [text sizeWithAttributes: @{NSFontAt... 阅读全文
posted @ 2015-05-22 11:51 童话DY 阅读(526) 评论(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 阅读(688) 评论(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 阅读(497) 评论(0) 推荐(0) 编辑
摘要: x轴旋转:CABasicAnimation *theAnimation;theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.rotation.x"];theAnimation.duration=1;theAnimation.... 阅读全文
posted @ 2015-05-01 11:07 童话DY 阅读(486) 评论(0) 推荐(0) 编辑
摘要: NSDictionary* dic1 = [[NSDictionary alloc]initWithObjectsAndKeys:font,NSFontAttributeName,[@"b5b5b5" toUIColor], NSForegroundColorAttributeName,nil... 阅读全文
posted @ 2014-11-17 11:20 童话DY 阅读(136) 评论(0) 推荐(0) 编辑