iOS获取时间-(毫秒级别)
2016-10-27 本文已影响439人
萝卜丝巾
NSDate *date = [NSDate date];
NSDateFormatter *formetter = [[NSDateFormatter alloc]init];
formetter.dateFormat = @"yyyyMMddHHmmss.**sss**";
NSString *dateStr = [formetter stringFromDate:date];
NSLog(@"str -- %@",dateStr);