Thursday, June 19, 2008

What is the easiest way to detect an iPhone?

Request.UserAgent.Contains("iPhone") returns true if the client is using their iPhone.

First time I saw that, I had a few hundred lightbulbs pop on over my head. It was blinding.

Dev Notes:
  1. Use "px" for font size.
  2. "div" and any block element has a smaller font size than non-block elements.
    I suspect that this size issue is a bug, that will be corrected.