How to NSLog an MPMediaItem ?
Or how to convert an MPMediaItem into an NSDictionary ? That’s pretty easy :
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 🙂
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; }
If your NSDictionary (or NSMutableDictionary) is named "myDictionary", just use : if ([myDictionary count]==0) { ... }
Here is a table compiling the list of interface element sizes useful for your application developments on iOS devices.
Following is the list of the font names & family really available on an iPhone :
Yes, this is a strange behaviour we can found in fact when the view that holds the UIActionSheet doesn’t goes to its end. In fact, it is visible especially on a child-view of a tabbarController.
Basic question, and sometimes we’re thinking of non « basic » answer because as a beginner, we’re not comfortable enough on using all magical stuff from objective-C/Cocoa… Well, in reality, we can let Quartz do that by itself 😀
Some beginners may have difficulties to insert into their SQL queries quotes like in « WPTechnology’s articles »…
You surely often see on several application an UIAlertView telling you to wait until something happens (sending information to a server, etc) like this :