The UIKit Gesture recognizers are REALLY easy to use. You just make
one (for longtap, for eg), assign it to the view you want to action it
on*, and you get a call back. Easy!

https://gist.github.com/3059262

there are lots, too. Swipe, Tap, LongTap, Pinch etc. And you set
params - two finger long tap for eg.

* If you do it on a UILabel - and possibly other things that you dont
normally interact with - you MUST enable interactions!!

label.UserInteractionEnabled = true;

BTW, in the case of a swipe, you get called:

When the swipe starts
REPEATEDLY when the swipe moves
When the swipe ends

So you dont want to do a long operation on each call - check the state
and react accordingly.

On Fri, Jul 6, 2012 at 3:03 AM, Miguel de Icaza <[email protected]> wrote:
> Hello Don,
>
>> Is there any monotouch example that shows use of gestures such as those
>> used in the Clear Application
>> http://itunes.apple.com/us/app/clear/id493136154?mt=8   .. there are some
>> pretty close samples using objective C but none for monotouch, at least that
>> I have seen, any pointers???
>
>
> Those are pretty simple gestures, you should check out this sample:
>
> http://samples.xamarin.com/Details/iOS/82ff303e-bd49-43cb-9520-d471c625a3c5
>
> Miguel
>
> _______________________________________________
> 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/

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
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
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