<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?

        时间:2023-10-23
        • <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 iPhone4 sdk 中退出(退出)应用程序 下一篇:PDF 阅读器,例如 iBooks

                  相关文章

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

                  <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>
                3. <small id='p8YKY'></small><noframes id='p8YKY'>