阅读背景:

为特定时间设置本地通知

来源:互联网 

I am trying to schedule a local notification so it will occur at 9:00pm and repeat once a week. I have the following code and I keep receiving a error that says "Cannot assign value of type NSDateComponents to .fireDate. I understand .fireDate will only accept NSDate types but. I can not figure out a way to set the hour variable and minute variable for a NSDate type because I don't think it is possible to do this. I am trying to schedule a local notification so




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: