From the course: iOS and watchOS App Development: Notifications

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Add buttons

Add buttons

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Add buttons

- [Instructor] While action buttons are standard for notifications, you can also use buttons either to replace or add more functionality to the notification. Let's move our actions into UI buttons. So we're going to stop the app here, and head on over to our storyboard, and I'm going to add a few more things. Let's organize ourselves a little better here. And I'm going to pull open with Option + Click, the library and find my buttons, and I'm going to drag two buttons on the bottom here, and we're going to make those into a stack view. So select both buttons, down here for stack view, and I'm going to make them horizontal so they're side-by-side. Alignment will be fill, distribution will be fill equally, that's my two buttons. I can close the object library. I'm going to open up the stack view so I can click on each one of these easily. And so for the first button here, we'll make that snooze. And for the second button, we'll make that like. I'm going to select both buttons again, and…

Contents