We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
crash日志如下:
问题出在resp.expiration的格式是字典格式:
> dataDict[@"expires_in"] = resp.expiration;
将resp.expiration改成字符串格式就好了
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc]init];//创建一个日期格式化器 dateFormatter.dateFormat=@"yyyy-MM-dd hh:mm:ss";//指定转date得日期格式化形式 NSLog(@"%@",[dateFormatter stringFromDate:resp.expiration]);//2015-11-20 08:24:04 dataDict[@"expires_in"] =[dateFormatter stringFromDate:resp.expiration] ;
参考:https://forum.leancloud.cn/t/leancloud/11261
https://leanticket.cn/t/leancloud/3608
The text was updated successfully, but these errors were encountered:
这里也贴了一些代码:#57
Sorry, something went wrong.
No branches or pull requests
crash日志如下:
问题出在resp.expiration的格式是字典格式:
将resp.expiration改成字符串格式就好了
参考:https://forum.leancloud.cn/t/leancloud/11261
https://leanticket.cn/t/leancloud/3608
The text was updated successfully, but these errors were encountered: