今天看啥
    热点:

      天发国际娱乐官网:1分钟后队长绍贾伊因踢倒吴曦也领到黄牌。

      iOS 截屏代码,ios截屏代码


      -(UIImage*)getScreenPhoto{

          CGFloat scale = [UIScreen mainScreen].scale;

          NSMutableArray *images = [NSMutableArray array];

          

          CGSize contentSize = self.view.size;

          

          CGSize imageSize = CGSizeMake(contentSize.width * scale, contentSize.height * scale);

          

          UIGraphicsBeginImageContextWithOptions(self.view.size, NO, 0.0);

          [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

          UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

          UIGraphicsEndImageContext();

          [images addObject:image];

          

          UIGraphicsBeginImageContext(imageSize);

          

          [images enumerateObjectsUsingBlock:^(UIImage *image, NSUInteger idx, BOOL *stop) {

              [image drawInRect:CGRectMake(0, scale * EJScreenH * idx, EJScreenW * scale, EJScreenH * scale)];

          }];

          UIImage *fullImage = UIGraphicsGetImageFromCurrentImageContext();

          

          UIGraphicsEndImageContext();

        return fullImage;

          

      }

      www.1click-soft.comtruehttp://www.1click-soft.com/IOSjc/1228881.htmlTechArticleiOS 截屏代码,ios截屏代码 -(UIImage*)getScreenPhoto{ CGFloat scale = [UIScreen mainScreen].scale; NSMutableArray *images = [NSMutableArray array]; CGSize contentSize = sel...

      相关文章

      相关搜索: 截屏

      帮客评论

      视觉看点
      百度 360 搜狗