Recently, I see a lot of code, for example, the following:
id<foo> aBar;
This is usually what I see in the class declaration, for example:
@interface bar : UIViewController <UITableViewDelegate, UITableViewDataSource>
Does this mean that aBar can be an instance of the bar and promises class to have all the methods declared in the foo protocol?
source
share