How to make an iOS asset bundle?

前端 未结 7 607
谎友^
谎友^ 2020-12-02 05:37

I saw a custom asset bundle in an iOS project I evaluated, so at least I know it\'s possible.

My issue is that I\'m using a CATiledLayer with about 22,000 tiles for

7条回答
  •  天涯浪人
    2020-12-02 05:42

    Creating a loadable bundle project is just like creating an application—you just need to pick the appropriate project template. To create a loadable bundle project, perform the following steps:

    1. Launch Xcode.
    2. Choose New Project… from the File menu.
    3. From the template list, select Cocoa Bundle.
    4. Click Next.
    5. Choose the location for the project and click Finish.

    Build and run, in Xcode you will see the bundle file in your Products folder of Project Navigator. Right-click the bundle and select "Show in Finder".

提交回复
热议问题