0

I've loaded an BSBundle for a localisation something like this:

NSURL *const bundleURL = [[NSBundle mainBundle] 
                           URLForResource:localizationName 
                            withExtension:@"lproj"];

NSBundle *const bundle = [NSBundle bundleWithURL:bundleURL];

… how can I (elsewhere) get back localizationName from bundle by sending a message to it?

Benjohn
  • 13,228
  • 9
  • 65
  • 127

1 Answers1

0

Based on this answer, this works:

[[bundle.bundleURL URLByDeletingPathExtension] lastPathComponent]
Community
  • 1
  • 1
Benjohn
  • 13,228
  • 9
  • 65
  • 127