- (UIImage *)capture
{
UIGraphicsBeginImageContextWithOptions(self.view.bounds.size, self.view.opaque, 0.0);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
}
使用Objective-C进行iOS开发
本文深入探讨了Objective-C在iOS开发中的应用,包括其在iOS应用开发中的优势、核心概念、常见用法及最佳实践。
994

被折叠的 条评论
为什么被折叠?



