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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.