UIDatePicker adding one to year

前端 未结 2 1331
予麋鹿
予麋鹿 2021-01-23 17:54

I have a very strange and confusing problem. I can\'t find anything about it and it seems like a bug with Apple, but if anyone has a suggestion on how to get around this it woul

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-23 18:42

    I don´t know if it would change anything but you could try

    [formatter setDateFormat:@"yyyy:MM:dd"];

提交回复
热议问题