keyboard

8 Oct 2010

If you want to transition between two views, here's a neat trick: take a screenshot of the screen you're transitioning from and do the transition between that bitmap and a bitmap representation of the screen you're transitioning to. That way, instead of animating between two possibly complex views with lots of subviews, etc., you are simply animating between two bitmaps. This, of course, will be far less of a strain on the CPU and thus perform better. This little nugget isn't just for iPhone development either. I first started using it back in the day while making Flash apps.

Taking screenshots programmatically

(more...)

Taking screenshots and getting a reference to the keyboard in iOS 4.x

How to take a screenshot of your app (or just the keyboard) via code and how to get a reference to the keyboard on iOS 4.x.

4 Jul 2008

When you're doing Ajax-based validation on a text input control, you really don't want your data calls firing off at every keyup event as this will put unnecessary load on your server. Instead, the thing to do is to wait a little while after the user's last key release to see if she's stopped typing before firing off a request.

I'm sure that there are hundreds of code snippets lying about for doing just this, and that JQuery probably already has something built in or a plugin for it, but a quick Google search didn't turn up anything for me so here I am, sharing my simple solution for delayed Ajax validation in JavaScript.

(more...)

Delaying Ajax-based validation triggers