Application Ma Pharmacie
Bla bla bla bla bla bla
Bla bla bla bla bla bla
Le site de référence des trucs et astuces en Français sur le net.
Or how to convert an MPMediaItem into an NSDictionary ? That’s pretty easy :
Do you want to present by yourself the list of available medias in the user iPod Library instead of having the MediaPickerController doing that ? Here is the good code for you 🙂
One hour, it is the time needed to find on the web a working workaround for that totally silly functionality added on Google Chrome.
You can create a static method like this: + (NSDate *)SQLDateTimeToNSDate:(NSString *)textDate { NSDateFormatter *dateFormater = [[NSDateFormatter alloc] init]; [dateFormater setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *date = [[NSDate alloc] init]; date = [dateFormater dateFromString:textDate]; [dateFormater release]; return date; }
Vous pouvez créer une méthode statique comme celle là : + (NSDate *)SQLDateTimeToNSDate:(NSString *)textDate { NSDateFormatter *dateFormater = [[NSDateFormatter alloc] init]; [dateFormater setDateFormat:@"yyyy-MM-dd HH:mm:ss"]; NSDate *date = [[NSDate alloc] init]; date = [dateFormater dateFromString:textDate]; [dateFormater release]; return date; }
Si votre NSDictionary (ou NSMutableDictionary) s'appelle "myDictionary", utilisez : if ([myDictionary count]==0) { ... }
If your NSDictionary (or NSMutableDictionary) is named "myDictionary", just use : if ([myDictionary count]==0) { ... }
Voici un tableau regroupant la liste des éléments d’interface utiles pour le développement de vos applications sur les appareils iOS.