<tfoot id='TCeK0'></tfoot>
    <legend id='TCeK0'><style id='TCeK0'><dir id='TCeK0'><q id='TCeK0'></q></dir></style></legend>

    <small id='TCeK0'></small><noframes id='TCeK0'>

    1. <i id='TCeK0'><tr id='TCeK0'><dt id='TCeK0'><q id='TCeK0'><span id='TCeK0'><b id='TCeK0'><form id='TCeK0'><ins id='TCeK0'></ins><ul id='TCeK0'></ul><sub id='TCeK0'></sub></form><legend id='TCeK0'></legend><bdo id='TCeK0'><pre id='TCeK0'><center id='TCeK0'></center></pre></bdo></b><th id='TCeK0'></th></span></q></dt></tr></i><div id='TCeK0'><tfoot id='TCeK0'></tfoot><dl id='TCeK0'><fieldset id='TCeK0'></fieldset></dl></div>
        <bdo id='TCeK0'></bdo><ul id='TCeK0'></ul>

      1. 如何将 UIView 转换为 UIImage?

        How to convert UIView as UIImage?(如何将 UIView 转换为 UIImage?)
        • <bdo id='fpudP'></bdo><ul id='fpudP'></ul>
          • <legend id='fpudP'><style id='fpudP'><dir id='fpudP'><q id='fpudP'></q></dir></style></legend>
            <tfoot id='fpudP'></tfoot>
            <i id='fpudP'><tr id='fpudP'><dt id='fpudP'><q id='fpudP'><span id='fpudP'><b id='fpudP'><form id='fpudP'><ins id='fpudP'></ins><ul id='fpudP'></ul><sub id='fpudP'></sub></form><legend id='fpudP'></legend><bdo id='fpudP'><pre id='fpudP'><center id='fpudP'></center></pre></bdo></b><th id='fpudP'></th></span></q></dt></tr></i><div id='fpudP'><tfoot id='fpudP'></tfoot><dl id='fpudP'><fieldset id='fpudP'></fieldset></dl></div>

            <small id='fpudP'></small><noframes id='fpudP'>

                    <tbody id='fpudP'></tbody>
                1. 本文介绍了如何将 UIView 转换为 UIImage?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在从 currentview 截取屏幕截图.但我想设置框架……不想将全视图转换为图像.我给出了框架大小……但它总是需要图片为全视图..有什么帮助吗?

                  I am taking screenshot image from currentview.but i want to set frame….don't want to convert fullview as image.I gave frame size..but it takes always Image as fullview..any help please?

                              CGRect rectt = CGRectMake(100, 150,150,200);
                      UIGraphicsBeginImageContext(rectt.size);
                      [self.layer renderInContext:UIGraphicsGetCurrentContext()];
                      UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
                      UIGraphicsEndImageContext();
                      UIImageView *imgView = [[UIImageView alloc] initWithFrame:rectt];
                  

                  推荐答案

                  quartz 可能会帮助你...看看 从图像的一部分创建图像....它不是您问题的直接解决方案,但我认为您可以对其进行调整以满足您的需求..

                  quartz might help you... look at creating image from part of image.... its not a direct solution to your question, but i think you'll be able to tweak it to fit your needs..

                  这篇关于如何将 UIView 转换为 UIImage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  EAAccessory/EASession teardown during background(EAAccessory/EASession 在后台拆除)
                  Getting an NSArray of a single attribute from an NSArray(从 NSArray 获取单个属性的 NSArray)
                  ImageIO: lt;ERRORgt; JPEG Corrupt JPEG data: premature end of data segment iphone - how to catch this?(ImageIO:lt;错误gt;JPEG 损坏的 JPEG 数据:iphone 数据段过早结束 - 如何捕捉到这个?)
                  Xcode iOS organizer submit to app store yields quot;The archive is invalidquot; error(Xcode iOS 管理器提交到应用商店产生“存档无效;错误)
                  MFMessageComposeViewController alloc returns nil(MFMessageComposeViewController alloc 返回 nil)
                  How to add and get the values from .plist in iOS(如何在 iOS 中从 .plist 添加和获取值)

                      <bdo id='p8YKY'></bdo><ul id='p8YKY'></ul>
                    • <legend id='p8YKY'><style id='p8YKY'><dir id='p8YKY'><q id='p8YKY'></q></dir></style></legend>

                        <tbody id='p8YKY'></tbody>
                      <i id='p8YKY'><tr id='p8YKY'><dt id='p8YKY'><q id='p8YKY'><span id='p8YKY'><b id='p8YKY'><form id='p8YKY'><ins id='p8YKY'></ins><ul id='p8YKY'></ul><sub id='p8YKY'></sub></form><legend id='p8YKY'></legend><bdo id='p8YKY'><pre id='p8YKY'><center id='p8YKY'></center></pre></bdo></b><th id='p8YKY'></th></span></q></dt></tr></i><div id='p8YKY'><tfoot id='p8YKY'></tfoot><dl id='p8YKY'><fieldset id='p8YKY'></fieldset></dl></div>
                      <tfoot id='p8YKY'></tfoot>
                    • <small id='p8YKY'></small><noframes id='p8YKY'>