Number of View :165

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;
}
Dernière recherches:

Number of View :151

If your NSDictionary (or NSMutableDictionary) is named « myDictionary », just use :

([myDictionary count]==0)
Dernière recherches: