NSNotificationCenter.DefaultCenter.AddObserver(
UIKeyboard.WillHideNotification,
notif => () );

NSNotificationCenter.DefaultCenter.AddObserver(
UIKeyboard.WillShowNotification,
notif => () );


notif will contain various members. One of them is a dictionary that
contains keys and in there you'll find all the rectangles, timings etc.

For instance the final rectangle of the keyboard:


NSObject value;

notif.UserInfo.TryGetValue(UIKeyboard.FrameEndUserInfoKey, out value);

RectangleF oKeyboardRectEnd = ((NSValue)value).RectangleFValue;

Don't forget the remove the observers when you're view is removed.

René

2012/7/9 Nic Wise <[email protected]>

> I think you have to hook into the NSNotificationCenter to get those
> calls. Might be something in the AppDelegate....?
>
> The framesizes are fixed, tho. Workout the orientation, the device
> type (ipad/iphone) and you know the size....
>
> On Sun, Jul 8, 2012 at 7:24 AM, rnendel11 <[email protected]> wrote:
> > Ok, this is getting ridiculous - what the heck is the pattern for
> > trapping/intercepting/detecting when the IOS keyboard is first displayed
> and
> > determining what its (the keyboard) frame is, using a c# (monotouch)
> > pattern?
> >
> >
> >
> > --
> > View this message in context:
> http://monotouch.2284126.n4.nabble.com/Keyboard-up-ie-shown-notification-tp4655843.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/
>
> 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
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to