How to Create MULTIPLE bundles in iPhone Applicati

2019-06-07 21:22发布

问题:

Hi I have a situation where my application can be used for different purposes depending on certain inputs.

Ex: I have a Theme.js which will have contents for Type A and another Theme.js will have contents for Type B. Here i will need to create a two bundles so that my application automatically will point to the bundle which will be used and use resources from that particular bundle.

I am not getting where to start with like How do i create a bundle. Is new file >resources> settings.bundle ?

ANY HELP WOULD REALLY BE APPRECIATED :)

回答1:

Step 1) Make new folder on Mac
Step 2) Add files to folder
Step 3) Add .bundle extension to that folder
Step 4) Add the file to XCode
Step 5) ...?
Step 6) PROFIT!