I downloaded the Facebook SDK, and I find there has something like FBConnect.bundle it is very interesting, and I also find some code is using the bundle, like this:
[loginButton setImage:
[UIImage imageNamed:@"FBConnect.bundle/images/LoginWithFacebookNormal@2x.png"]
forState:UIControlStateNormal];
So, I would like to know, what is the bundle? How can I know what inside the bundle? How can I create my own bundle? Thanks.
Bundles are more relevant on OS X than they are on iOS. A bundle is simply a self contained executable file. When you run it, it executes a main function that is defined inside, and uses only the resources that it contains. However, iOS (as far as I know) doesn’t (can’t?) execute bundles aside from the main one, so they are just glorified folders. You can view their contents by going to the in the finder, right clicking, and choosing Show Package Contents.