• <small id='C8SAp'></small><noframes id='C8SAp'>

      <legend id='C8SAp'><style id='C8SAp'><dir id='C8SAp'><q id='C8SAp'></q></dir></style></legend><tfoot id='C8SAp'></tfoot>
        • <bdo id='C8SAp'></bdo><ul id='C8SAp'></ul>
        <i id='C8SAp'><tr id='C8SAp'><dt id='C8SAp'><q id='C8SAp'><span id='C8SAp'><b id='C8SAp'><form id='C8SAp'><ins id='C8SAp'></ins><ul id='C8SAp'></ul><sub id='C8SAp'></sub></form><legend id='C8SAp'></legend><bdo id='C8SAp'><pre id='C8SAp'><center id='C8SAp'></center></pre></bdo></b><th id='C8SAp'></th></span></q></dt></tr></i><div id='C8SAp'><tfoot id='C8SAp'></tfoot><dl id='C8SAp'><fieldset id='C8SAp'></fieldset></dl></div>

      1. 如何从框架资产中设置故事板中的图像

        时间:2023-05-17

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

        <tfoot id='xoHF6'></tfoot>

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

                • 本文介绍了如何从框架资产中设置故事板中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  在我的项目中,有一个框架项目,并且这个框架项目在资产目录中有图片..

                  In My Project, there is one framework project and this framework project has images in the assets catalog..

                  我想在我的主要项目的情节提要中使用这些图像.

                  I want to use theses images using the storyboard of my main project.

                  我可以通过像这样定义框架的捆绑包来使用类文件中的图像,

                  I can use the images in class files by defining the bundle of the framework like this,

                  myImageView.image = UIImage(named: "img1", in: Bundle.init(identifier: "com.abc"), compatibleWith: nil)
                  

                  但不在情节提要中.所以我可以在情节提要中使用它还是只能使用代码?

                  but not in the storyboard. so Can I use it in storyboard or I have to go using code only ?

                  推荐答案

                  你不能直接使用其他框架的资产,但你可以将资产添加到你的主要目标作为参考:

                  You cannot use assets of other frameworks directly, but you can add the assets to your main target as reference:

                  将文件添加到 Project.xcodeproj..."

                  "Add Files to Project.xcodeproj..."

                  然后,您将能够在图像视图和按钮的属性检查器中选择资产容器的图像.

                  You will then be able to choose the images of the assets container in the attributes inspector of image views and buttons.

                  这篇关于如何从框架资产中设置故事板中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:嵌入式框架 &lt;iOS 8 下一篇:我应该使用哪个框架在 Android 上运行 OData API?

                  相关文章

                  1. <small id='vnyHo'></small><noframes id='vnyHo'>

                      <tfoot id='vnyHo'></tfoot>

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

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