Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

弹出会延时2、3秒 #174

Open
ZoharChZ opened this issue Nov 4, 2019 · 3 comments
Open

弹出会延时2、3秒 #174

ZoharChZ opened this issue Nov 4, 2019 · 3 comments

Comments

@ZoharChZ
Copy link

ZoharChZ commented Nov 4, 2019

PGDatePickManager *datePickManager = [[PGDatePickManager alloc]init];
datePickManager.titleLabel.text = @"请选择年检到期时间";
PGDatePicker *datePicker = datePickManager.datePicker;
ChZ_Weak
datePicker.selectedDate = ^(NSDateComponents *dateComponents)
{
ChZ_Strong
};
datePicker.datePickerMode = PGDatePickerModeYearAndMonth;
[self presentViewController:datePickManager animated:NO completion:nil];

@ZoharChZ ZoharChZ changed the title 弹回会延时2、3秒 弹出会延时2、3秒 Nov 4, 2019
@CoderJackySong
Copy link

这个我遇到了,怎么解决的呢?

@ameue
Copy link

ameue commented Jun 30, 2020

@xiaozhuxiong121 demo的响应时间感觉不出来,真机确实感觉稍微慢一点

@xiasanlan
Copy link

替换

  • (NSInteger)daysWithMonthInThisYear:(NSInteger)year withMonth:(NSInteger)month {
    BOOL isLeapYear = false;
    if((year % 400 == 0) || ((year % 4 == 0) && (year % 100 != 0))){
    isLeapYear = true ;
    }
    NSArray *days = @[@"31",isLeapYear?@"29":@"28",@"31",@"30",@"31",@"30",@"31",@"31",@"30",@"31",@"30",@"31"];
    return [days[month - 1] integerValue];
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants