concept require method in category ios

appears as: required methods, required method
Anyone Can Create an App: Beginning iPhone and iPad programming

This is an excerpt from Manning's book Anyone Can Create an App: Beginning iPhone and iPad programming.

A protocol is a contract that says any class that wants to conform to the protocol must implement the required methods. In this case, a pizza restaurant must implement makePizza() if it wants to conform to the Pizza Restaurant protocol. This will be easier to understand when you create the app, so stick with me. We need to cover one more concept before you create your first table view.

Well, doesn’t that look foreign? If you look through your ViewController code, you’ll notice there isn’t anything that says numberOfRowsInSection, so where is this coming from? You added a table view to the storyboard and didn’t implement the required method for the ViewController to conform to the protocol. This is telling you that the table view tried to call numberOfRowsInSection but couldn’t find the method in your code. At this point, you’re not conforming to the protocol.