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

Code the view controller

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

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…

Contents