From the course: iOS and watchOS App Development: Notifications
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Code the view controller
From the course: iOS and watchOS App Development: Notifications
Code the view controller
- Just like any app, once I have my storyboard, I'll set my outlets. Go ahead and close the attributes inspector for now. Open up the assistant editor. And I can zoom this out a little bit but really because this is all in a stack view, I tend to use my outline for the next part. And if you look in the code here, you'll see that there was the label you already had. So which I'm just going to delete that out of there. And you'll see there's another one down here that's giving me an error if that was used for that. I'm just going to delete that for now too. So what we're going to do is control drag from title over here into here. Make an Outlet content title. (typing) Now to make a content subtitle. (typing) And with no surprise whatsoever, a content body. (typing) And one more for the image view which will be content image view. (typing) And we've completed the storyboard and made some outlets. Now I'm going to add some code. I'll first of all close the assistant editor and then go…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Add the content extension1m 15s
-
(Locked)
Change the UI3m 53s
-
(Locked)
Code the view controller4m 9s
-
(Locked)
Change plist settings3m 6s
-
(Locked)
Customize actions3m 4s
-
(Locked)
Customize requests4m 15s
-
(Locked)
Add buttons2m 57s
-
(Locked)
Use buttons for actions3m 31s
-
(Locked)
Code the snooze button3m 57s
-
(Locked)
-
-
-