Top "Nsbundle" questions

An NSBundle object represents a location in the file system that groups code and resources that can be used in a program.

Swift - read plist file to an array?

I have created a mini translation from English words to Spanish words. I would like to use the englishArray.plist …

arrays swift file nsarray nsbundle
Best way of loading images from application bundle

What is the best way of loading images from the application main bundle. I am using [UIImage imageNamed: "image.png"]; …

iphone objective-c performance image nsbundle
UIImage imageNamed requires pathForResource?

How necessary is it to search for a path to an image using the NSBundle method pathForResource when creating a …

iphone objective-c uiimage nsbundle
NSTask launch path not accessible

I am using the following code in my Cocoa project to call a script I made. The script is in …

objective-c cocoa path nsbundle nstask
How to use Core Data's ManagedObjectModel inside a framework?

I'm trying to migrate a specific part of one of my apps into a framework so that I can use …

ios core-data frameworks nsbundle nsmanagedobjectmodel
NSBundle - (not loaded yet) Error

I am trying to get a strings file table for use with NSLocalizedStringFromTableInBundle. I am using this method: +(NSBundle*)getBundleForLang:(…

ios nsbundle localizable.strings
How to get path to a subfolder in main bundle?

I have a project which I am migrating from Obj-C to Swift 3.0 (and I am quite a noob in Swift). …

ios swift3 nsbundle
Swift - Get NSBundle for test target?

In Objective C whenever I had to access the test bundle I would call [NSBundle bundleForClass:[ClassInTestTarget class]]; bundleForClass is …

swift nsbundle
Impossible to load an image in xcassets on bundle

I need to include images in a static library. I created a bundle and inserted in my images, the problem …

ios static-libraries nsbundle xcasset
How do NSBundle pathForResource:ofType: and UIImage imageWithContentsOfFile: handle scale and device modifiers?

In my iOS resource folder, I have the images: foo~iphone.png foo@2x~iphone.png foo~ipad.png foo@2…

ios uiimage retina-display nsbundle