I used a Guesture Recogniser when I had to do this (a long tap, in my
case, but a normal tap should work)

You can get the location when your guesture's handler is called, by doing:

sender.LocationInView(... the view ...);

So, if you pass the button in, you get the location within the button.
Pass it's parent view in, it's within that etc.

I used it to long-tap pop-up an edit menu :)

On Mon, Sep 24, 2012 at 7:14 PM, gc898 <[email protected]> wrote:
> I'm using Monotouch.Dialog and have a custom cell with two buttons on it.
> When a button is tapped, I want to show a popover. The problem is I can't
> see how to get the coordinates of the button (to position the popover
> properly) when handling the button click in my main view controller.
>
> I have code to get coordinates when a whole table cell is selected based on
> the IndexPathForSelectedRow property, but in this scenario, tapping one of
> the buttons on the cell does not cause the row to be selected.
>
> Any ideas how to accomplish this?
>
>
>
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/Determine-coordinates-of-button-tap-on-table-cell-tp4657203.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to