From the course: Shared Economy for iOS Development

Unlock the full course today

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

Storing the order online

Storing the order online - iOS Tutorial

From the course: Shared Economy for iOS Development

Start my 1-month free trial

Storing the order online

- So I believe we have everything we need to create the service request. Couple last things we want to do on the UI is we might want to show the user's location so we can type mapView.showsUserLocation equal true. And we want to set the label to be the right text. So the lblName.text equal appUser.userName and since that's an optional we can use the null coalescing operator to say No Name just in case something went crazy. So now let's create the service request down here in the doBtnMow. We're going to need some of the AWS framework so let's go ahead and import the AWSMobileClient and AWSAppSync. So now down here we want to create this service request table row similarly to how we did the view controller before when we created the table row entry for when the user logs in so we want to create an input but instead of AppUser, it'll be service request, then mutation and then perform that. So we can use this code as a model. So first we want to create the input. So on line 50 I'll type,…

Contents