How should I correctly reference protocols on a UML class diagram?
For example my ListViewController conforms to the UITableViewDataSource and UITableViewDelegate protocols… where do I put the cellForRowAtIndexPath or numberOfRowsInSection methods? … in ListViewController where they are implemented or in something like this:
<<Protocol>>
UITableViewDataSource
---------------------
---------------------
-numberOfRowsInSection
If I did the latter what would be the association between the ListViewController class and the protocol box be? All I have to show is how I hook into Cocoa Touch some how.
Thanks.
Protocols are sort of equivalent to interfaces in java, so you can find a java UML diagram and work off that.
Also, from http://en.wikipedia.org/wiki/Class_diagram:
So if I’m reading that correctly,
ListViewControllerwould have a dashed line with an unfilled arrowhead pointing toUITableViewDataSource.