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.

Filtering data

Filtering data - iOS Tutorial

From the course: Shared Economy for iOS Development

Start my 1-month free trial

Filtering data

- Now that we're starting to wrap up, we want to put this filter back so we don't see all the requests. If we run the old version of the app, we see all the requests, even the ones that have already be accepted. And the ones that we created ourselves. Not the ones that are for us. So let's change our filter up a bit. First I'm going to uncomment this code at the top or our fetch service request in the request table view controller. And then I want to specify that the name is equal to my name and for the provider. So anything that's been requested for me I should see. But I also want to specify that I don't want to see anything that has already been accepted. So we're going to create another input. So I'm going to say let FI2 equal. And this one's not going to be a string filter input. This one's going to be a Boolean filter input. So we'll do model Boolean filter input. And we want to make sure that's it's equal to false. It hasn't been accepted. So now we want to specify what…

Contents