2010-08-22 5 views

Répondre

3

Si votre plist est un tableau:

NSArray *array = [[NSArray alloc] initWithContentsOfFile:yourFile]; 
if ([array count] == 0) { 
    NSLog(@"Your plist is empty"); 
} 

Ou si votre plist est un dictionnaire:

NSDictionary *dictionary = [[NSDictionary alloc] initWithContentsOfFile:yourFile]; 
if ([[dictionary allKeys] count] == 0) { 
    NSLog(@"Your plist is empty"); 
} 
+0

thks pour votre aide – Stefan

Questions connexes