我需要设置一个UILocatNotification,每天上午9点开火。任何帮助将不胜感激。
答案 0 :(得分:2)
[formatter setDateFormat:[NSDateFormatter dateFormatFromTemplate:@"yyyy-MM-dd HH:mm:ss"
options:0
locale:nil]];
[formatter setTimeZone:[NSTimeZone localTimeZone]];
notification.fireDate = [formatter dateFromString:@"2010-10-21 09:00:00"];
notification.repeatInterval = NSDayCalendarUnit;