Fix crash on iOS8

This commit is contained in:
Guillaume BIENKOWSKI 2014-09-19 10:05:26 +02:00
parent 965dc5b574
commit e4d66021cf

View file

@ -74,6 +74,12 @@ static const ContactSections_e contactSections[ContactSections_MAX] = {ContactSe
- (void)initContactDetailsTableViewController {
dataCache = [[NSMutableArray alloc] init];
// pre-fill the data-cache with empty arrays
for(int i=ContactSections_Number; i< ContactSections_MAX; i++){
[dataCache addObject:@[]];
}
labelArray = [[NSMutableArray alloc] initWithObjects:
[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"],
[NSString stringWithString:(NSString*)kABPersonPhoneMobileLabel],