When there is no data to be displayed in the Restaurant List screen, you will display a custom UIView to inform the user there is no data to be displayed. To do this, you will create a UIView subclass and an accompanying XIB file. Xcode Interface Builder (XIB) term is used interchangeably with NextStep Interface Builder (NIB). It was used to create the user interface before storyboards were implemented and is still used today. Let's create both files now:
- Right-click on the Misc folder and select New Group. Name it No Data.
- Right-click on the No Data folder and choose New File.
- iOS should already be selected. Choose Cocoa Touch Class and then click Next.
- Configure the file as follows: ...