-1

Will a user agent of an iPad running an iPhone app with a UIWebView use a iPad User Agent, or an iPhone user agent?

olafdunn
  • 13
  • 1
  • 2

1 Answers1

1

The default User-Agent the UIWebView on iPad uses is:

Mozilla/5.0 (iPad; CPU OS 6_1 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Mobile/10B141

Yes, it is an iPad User-Agent.

You can check your User-Agent string by going to:

http://jonathangurebo.com/detect or http://whatsmyuseragent.com

if you wan't to change your User-Agent in UIWebView, check this link: Change User Agent in UIWebView (iPhone SDK)

Community
  • 1
  • 1
Jonathan Gurebo
  • 1,089
  • 1
  • 11
  • 21
  • That is quite annoying. If the website within UIWebView contains adapted content for iPad, this will be displayed over the content for the iPhone. Which will likely cause the perceived page not to be displayed as expected. – olafdunn Aug 07 '13 at 13:18