网站/小程序/APP个性化定制开发,二开,改版等服务,加扣:8582-36016

屏幕截图功能源码

应用介绍

    一款不错的屏幕截图功能源码,主要我们点击按钮进行截屏操作了,同时也可以将截屏图像保存到相册中等功能,大家可以下载学习看看吧。 //获取当前屏幕内容 - (UIImage *)getNormalImage:(UIView *)view{ float width = [UIScreen mainScreen].bounds.size.width; float height = [UIScreen mainScreen].bounds.size.height; UIGraphicsBeginImageContext(CGSizeMake(width, height)); CGContextRef context = UIGraphicsGetCurrentContext(); [view.layer renderInContext:context]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return image; }

    立即下载

    请到会员中心签到后即可获得免费下载!

    评论 共有 0 条评论

    暂无评论
    0
    0
    0
    立即
    投稿
    发表
    评论
    返回
    顶部