반응형 image1 UIImage에 여백 마진 넣기 - (UIImage *)imageWithInsets:(CGRect)insetRect image:(UIImage *)image { CGRect newRect = CGRectMake(0.0, 0.0, insetRect.origin.x+insetRect.size.width+image.size.width, insetRect.origin.y+insetRect.size.height+image.size.height); // Setup a new context with the correct size UIGraphicsBeginImageContextWithOptions(newRect.size, NO, 0.0); CGContextRef context = UIGraphicsGetCurrentContext(); UIGraph.. 2019. 5. 30. 이전 1 다음 반응형