Join Mohammad Azam for an in-depth discussion in this video Deleting an order, part of iOS Development: Siri Shortcuts.
- [Instructor] In order to delete the orders, … go ahead and open OrdersTableViewController … and scroll down to the commit editingStyle function, … which is a delegate function of a tableView. … You can see that we are getting the selected order, … but right now we are not really deleting it … from our user default, we are simply filtering it. … So let's go ahead and remove this portion. … We will use our coffee order manager, … and going to call deleteOrder, … passing in the actual order that we want to delete. … We don't really have any function … called deleteOrder right now, … but don't worry about it, … we are going to get it working. … Also, in the dispatch main.async, … we are going to go ahead and call populateOrders, … which is going to populate the orders … and refresh our tableView. … populateOrders has been defined on line number 38 'til 43. … Now it's time to implement the deleteOrder function, … which should be part of the CoffeeOrderDataManager. … Let's go ahead and open up CoffeeOrderDataManager …
Author
Released
10/11/2019- Creating shortcuts using the Shortcuts app
- Implementing shortcuts using NSUserActivity
- Adding an Intent Definition file
- Donating intents
- Developing a custom user interface for Siri Shortcuts
- Returning custom responses
Skill Level Intermediate
Duration
Views
Related Courses
-
Blockchain Programming in iOS Using Swift
with Mohammad Azam2h 15m Intermediate -
Building iOS Apps with CloudKit
with Doron Katz2h 6m Intermediate -
iOS Development: Security
with Károly Nyisztor2h 6m Intermediate -
iOS Development: Architecture
with Károly Nyisztor2h Intermediate
-
Introduction
-
1. Understanding Siri Shortcuts
-
What are Siri Shortcuts?1m 11s
-
-
2. Implementing Coffee App Shortcuts Using NSUserActivity
-
Adding voice shortcut1m 53s
-
3. Implementing Coffee App Using Intents
-
Donating the intent6m 29s
-
Using CoffeeOrderDataManager3m 49s
-
4. Developing a Custom User Interface for Siri Shortcuts
-
Displaying invoice view8m 7s
-
Displaying confirmation view3m 25s
-
5. Custom Responses
-
Returning custom responses2m 20s
-
Deleting an order4m 31s
-
Deleting donations4m 6s
-
Conclusion
-
Next steps1m 30s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Deleting an order