摘要: CAKeyframeAnimation * animation; animation = [CAKeyframeAnimation animationWithKeyPath:@"transform"]; animation.duration = 0.5; animation.delegate = self; animation.removedOnCompletion = YES; animation.fillMode = kCAFillModeForwards; NSMutableArray *values = [NSMutableArray arr... 阅读全文
posted @ 2013-10-16 19:33 一个人去流浪 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 参考了网上例子NSString *string = [NSStringstringWithFormat:@"请选择和 %@ 阿姨的沟通效果",nameString]; NSMutableAttributedString *attriString = [[[NSMutableAttributedStringalloc] initWithString:string] autorelease]; NSRange range; range.location = 5; range.length = nameString.length; [attriString addAttribut 阅读全文
posted @ 2013-10-16 17:21 一个人去流浪 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 当我们弹出一个提示框的时候,流行的效果是让背景色变为半透明的黑色。但是往往我们把父view设置为黑色半透明时,子view也会变成半透明,这是我们不期望看到的。这里有个比较好的解决办法,用[UIColor colorWithRed:G:B A];方法。而不设置alpha。 阅读全文
posted @ 2013-10-16 17:15 一个人去流浪 阅读(182) 评论(0) 推荐(0) 编辑