There is often a need to encapsulate your own modules or open classes into static libraries to provide convenient calls to others.
But when you need to use a lot of xib, pictures, audio or other resource files in your module, you can't add them to the static library. At this point, some resource files need to be encapsulated. Bundle file. Well, the packaged stuff should contain three types of files:
1: Open header file (contains full call notes)
2: Static library file suffix named. A
3:bundle file for storing various resource files.
So the rest is simple: here is a specific package of bundle files (in fact, very simple)
First step: Create a bundle project
Select the bundle file type and create the project.
Step Two: Modify buildsetting Related Settings
1:base SDK modified to iOS6 or other existing iOS SDK versions
2:architectures modified to ARMv7 armv7s
Step Three: Add the resource file you want to add
Fourth Step: Build (This does not require a certificate and can be compiled successfully)
This generates your own bundle.
When called, the help needs to be referenced to the project.
If you want to be called in a non-mainbundle place. Then you need to load this bundle extra
NSBundle *buddle = [nsbundlebundlewithpath:@ "Your bundle file storage path"];
[Buddle load];//This step must be performed, otherwise buddle invalid
So you can put this bundle on any path called
Go Xcode package. bundle files