I'm back to MonoTouch development after several months out, so I'm a little
rusty (and I've only created a single, fairly simple app anyway).

I've created my own UITableViewSource and UITableViewCell classes, as
described in numerous places on the web, to enable me to customise the
cell's appearance. In IB, I have dragged a UITableView directly onto the
view, and have created an outlet for it.

First problem: I expected to be able to create a RowSelected action in IB,
but all I could create was an outlet or an outlet collection. I'm clearly
missing something here. In my mind, the UITableView is similar to a control
in .Net, complete with events. I expected such events to be exposed in IB,
but obviously they're not. The RowSelected event is actually in the
UITableViewSource, so I can understand why I can't create an action in IB,
but this doesn't currently make sense to me. Why is the event tucked away in
the source? I'm clearly looking at this all wrong.

Secondly, how do I actually use the RowSelected event in my code? The event
is tucked away in the UITableViewSource class, and I want to respond to it
in the main view controller.

I really though this would be simple (and I'm sure it should be).

Thanks



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/I-m-clearly-completely-misunderstanding-something-fundamental-Help-tp4370234p4370234.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to