Rectangle 27 0

I've found the following solution:

NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
NSDictionary *extentionDictionary = infoDict[@"NSExtension"];
NSDictionary *extentionAttributesDictionary = extentionDictionary[@"NSExtensionAttributes"];
NSString *languageCode = extentionAttributesDictionary[@"PrimaryLanguage"];

objective c - Get programmatically NSExtensionAttributes dictionary in...

ios objective-c ios8 custom-keyboard
Rectangle 27 0

I've found the following solution:

NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
NSDictionary *extentionDictionary = infoDict[@"NSExtension"];
NSDictionary *extentionAttributesDictionary = extentionDictionary[@"NSExtensionAttributes"];
NSString *languageCode = extentionAttributesDictionary[@"PrimaryLanguage"];

objective c - Get programmatically NSExtensionAttributes dictionary in...

ios objective-c ios8 custom-keyboard