笔记

改变占位符的颜色

 UIColor *placeHolderTextColor = [UIColor redColor];

 CGSize drawSize = [self.placeholder sizeWithAttributes:[NSDictionary dictionaryWithObject:self.font forKey:NSFontAttributeName]];

CGAffineTransformRotate(transform, M_PI);是旋转的。


CGAffineTransformMakeRotation(-M_PI);也是旋转的


transform = CGAffineTransformScale(transform, -1.0, 1.0);是缩放的

posted @ 2016-03-07 21:48  原码  阅读(111)  评论(0编辑  收藏  举报