Hi i'm creating an iOS 7 app and would like "watch" for user selections and then trigger some event.
It's a mimic of the dictionary app that comes with iOS 7, that you can select a word and it defines it for you, but in this case other action will be taken when a word is selected (after it's selected).
Where can i find documentation on this subject? i have tried searching on google but found nothing...
Thanks, any pointers will be greatly appreciated.
You can use NSNotificationCenter. Post a notification when user selects a word, then having other objects to observe for that specific notification and take your actions
Related
I am developing an application with Sirikit. Using Sirikit, I have Shown a list of items as INTask and when I select any item from the list the original app will open, I have achieved till this.
My actual requirement is: I need to identify which item the user has selected from the Sirikit and I need to open different ViewControllers for different items. Can anyone help me?
Thank you in advance.
Any help appreciated.
I have an app that sends push notifications to the user.
I want to add to every notification 2 buttons (actions), I think it's called Rich Notifications.
I didn't find enough information on how to do it, so I would really appreciate if someone could guide me here.
Thanks!
You need to add a notification category and the category will have notification actions. Those actions will define what the buttons say and what gets passed to your app when the user chooses one.
Googling the keyword you provide return many results. Why don't you pick one and try it out for yourself. One of it can be found on this link
http://willowtreeapps.com/blog/wwdc-2016-rich-notifications-in-ios-10/
I am building an app and in that am getting access for sending push notification, contacts and photos at three different time. But I don't want to trouble the user by asking it three different times.
How can I show a single alert and get access for all three with single tap?
Please help.
Unfortunately this is not possible, But the most close answer for your question is to present one elegant view that tells the user the benefits of giving permissions then after he clicks OK , show the alerts one after another. Then thank him for his favor :)
Take a look at this great article .
I'm in the middle of planning a project that would utilise the ability to create custom events from within an iOS application.
At the moment i've found plenty of code that allows you to do this but ideally I would like the user to be able to then navigate back into the application once the iCal reminder has fired, in a similar way a push notification does once the user hits the view button.
I've had a detailed look around but cannot find anything, does anyone know if this possible?
If it's not possible, does anyone know of a way to create dynamic push notifications from within the app?
Thanks in advance.
I am trying to make a simple app whereby a user selects a date/time in future and upon that date/time happening that a particular event happens.
How do I get about getting such a thing implemented?
Thanks
You want UILocalNotification.
Are you talking about getting Notification such as Alarm??
If yes, Local Notification is the same that you want. For using it please go through demo explanation : http://www.iostipsandtricks.com/ios-local-notifications-tutorial/
and for API's see YusufX's answer...