newtypecxj
Results
1
issues of
newtypecxj
我在创建PGDatePicker时,设置了calendar和timeZone,但是在PGDatePicker+Common类的daysWithMonthInThisYear:withMonth:方法中,创建formatter后并未将calendar和timeZone设置进去。 - (NSInteger)daysWithMonthInThisYear:(NSInteger)year withMonth:(NSInteger)month { NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"yyyy-MM"]; NSString *dateStr = [NSString stringWithFormat:@"%ld-%ld",year,month]; NSDate *date = [formatter dateFromString:dateStr]; NSCalendar *calendar = [[NSCalendar alloc]initWithCalendarIdentifier: NSCalendarIdentifierGregorian]; NSRange...