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
How to create a bundle
.bundle
(e.g. "New folder" -> "BundleName.bundle")PS: You can at any time right click the folder and hit "Show package content" in order to add, remove or modify any of the files.
How to add the bundle to Xcode
How to use the bundle
NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"BundleName" ofType:@"bundle"];
NSBundle *bundle = [NSBundle bundleWithPath:bundlePath];
NSString *resource = [bundle pathForResource:@"fileName" ofType:@"fileType"];
(Replace BundleName
, fileName
and fileType
with appropriate names)