0
내가 회전 한 UILabel의 변환 : centerLabel.transform = CGAffineTransformMakeRotation((90 * M_PI)/180);
는 UILabel의 렌더링과 (변환과 UILabel의)
내가있는 UIImage에 내 UILabel의 렌더링이 필요하지만, 나는 그것을 변환으로 만들 수 없습니다. UILabel을 렌더링 할 때 변환없이 UILabel을 얻고 있습니다. 어떻게 만들 수 있습니까? 이 코드 시도
+ (UIImage *) imageWithView:(UIView *)view andOpaque:(BOOL)opaque {
UIGraphicsBeginImageContextWithOptions(view.bounds.size, opaque, 0.0);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
}