How would you solve this? When the app starts, four objects of a class are created. These objects have names you know because you named them yourself. From a viewController you can access these objects and call a method (which they all got) which creates a UILocalNotification. (So in the end you’ve got four notifications running.)
Two questions:
-
How do you name the notifications (differently)? As far as I know is it not possible to access the object name to use the string as name when creating the notification? (Which would be the best solution?)
-
When the notifications are fired, how do you access/cancel them from another viewController when you don’t know the names?
Thank you!
Set tags for all objects, and set same tags for notifications, they generate.