[MonoTouch] [monotouch] how can you pass values between 2 tableviews

Jeff Stedfast jeff at xamarin.com
Thu Mar 29 16:18:31 UTC 2012


Hi sibzsangreal,

I'm not entirely clear on what exactly you want to do, but what you'll need
to do is to implement a UITableViewDelegate for tableview1 and implement
the RowSelected() method, where it could use the NSIndexPath into
tableview1's data model to extract the data item and then pass it along to
tableview2.

Hope that helps,

Jeff

On Thu, Mar 29, 2012 at 1:09 AM, sibzsangreal <sibzsangreal at gmail.com>wrote:

> hello sorry noob here- I'm trying to pass the selected value of tableview 1
> to tableview2 i only have them in 1 view controller i used Xcode to grab
> the
> tableviews and make connections i used mono touch to insert data into the
> table.
>
> I've been trying to use Xcode as they were the only one with tutorials but
> I'm afraid mixing Xcode with mono touch is disaster.. so I'm gonna ask you
> guys if you happen to know of a way to pass values.
>
> I've tried using a label but i can't get the data out of the table view so
> its still impossible to me- thanks every one in advance..
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/monotouch-how-can-you-pass-values-between-2-tableviews-tp4514494p4514494.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120329/9056e5c3/attachment.html>


More information about the MonoTouch mailing list