Iphone 如何将UILocatNotification设置为每天上午9点点火
我需要设置一个UILocatNotification,每天早上9点点火。任何帮助都将不胜感激。到目前为止您做了什么?一切都完成了,我只需要知道如何格式化firedate方法。Iphone 如何将UILocatNotification设置为每天上午9点点火,iphone,objective-c,ios,ios4,iphone-sdk-3.0,Iphone,Objective C,Ios,Ios4,Iphone Sdk 3.0,我需要设置一个UILocatNotification,每天早上9点点火。任何帮助都将不胜感激。到目前为止您做了什么?一切都完成了,我只需要知道如何格式化firedate方法。 [formatter setDateFormat:[NSDateFormatter dateFormatFromTemplate:@"yyyy-MM-dd HH:mm:ss" options:0
[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;