tag:blogger.com,1999:blog-3974924322071221697.post303021389981787940..comments2015-09-02T10:07:11.864-07:00Comments on iPhone Programming Discoveries: Renewing UILocalNotificationsUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3974924322071221697.post-65014327659277258412015-09-02T10:07:11.864-07:002015-09-02T10:07:11.864-07:00Hi Ace,
Thanks for looking through my solution. I...Hi Ace,<br />Thanks for looking through my solution. In my code I schedule the local notifications within a FOR loop, and I also use : <br /> startDate = [currentCalendar dateByAddingComponents:dayComponent toDate:startDate options:0];<br /><br />this will add a day to the startDate at every iteration of the loop. I hope this answers your question?<br />Also the userdefinedmessages are stored as an array.<br /><br />thanks!<br />ShvetaShveta Purihttps://www.blogger.com/profile/07799716838603289189noreply@blogger.comtag:blogger.com,1999:blog-3974924322071221697.post-23266484392549995652015-09-01T07:16:34.756-07:002015-09-01T07:16:34.756-07:00Looking at your "Renewing Local Notifications...Looking at your "Renewing Local Notifications" section, I see that you have the intention of incrementing your dayComponent but don't actually do it. Am I missing something?Anonymoushttps://www.blogger.com/profile/12397266916862182881noreply@blogger.comtag:blogger.com,1999:blog-3974924322071221697.post-75460113801350993392015-09-01T06:43:48.966-07:002015-09-01T06:43:48.966-07:00Hi
First off great work putting this solution to...Hi <br /><br />First off great work putting this solution together.<br /><br />Not sure if my comment went through, but I'll type it again. I saw your question on stackoverflow which led me here. I was looking at implementing a similar randomizer for location notifications<br /><br />Look at your solution, it's exactly as expected except for one thing. Initially you create 64 notifications to fill your available slots but you don't set your dayComponent to increment. Which in my option would result in them all being scheduled for the same time.<br /><br />I see you that you do increment your dayComponent when you renew them though. I was wondering if that's just a typo or intended? Also what format is your userDefinedMessgaes? Is it an array or registered into your ,plist as a dictionary?<br /><br />Cheers<br />AceAnonymoushttps://www.blogger.com/profile/12397266916862182881noreply@blogger.com