아이폰 현재 시간 알아내기(iPhone Dev)
NSDate *now = [ NSDate date ]; NSDateFormatter *format = [[ NSDateFormatter alloc ] init ]; [format setDateFormat : @"[YYYY-MM-dd HH:mm:ss]" ]; NSString *currentTime = [format stringFromDate :now]; [format release ]; // Label Display self . lbl_Time . text = [ NSString stringWithFormat : @"%@" , currentTime];