I'm a bit confused with how to create a custom protocol/delegate type in Monotouch.
The obj-c equivalent is
@protocol CellController
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath (NSIndexPath *)indexPath;
@optional
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
@end
Does the implementation have to be an ab开发者_如何学Cstract class, an interface or what?
I'm sure its not complicated, I just can't get my head around it. A code example would be helpful, but getting pointed in the right direction will still be extremely helpful
Cheers
R
So what I ended up doing was creating an interface and using that :)
精彩评论