Modern Swift Here's a suggestion for Swift 3+ projects from StackOverflow users PassKit and Kheldar: UserDefaults.standard.register(defaults: ["UserAgent" : "Custom Agent"]) Source: https://stackoverflow.com/a/27330998/128579 Earlier Objective-C Answer With iOS 5 changes, I recommend the following approach, originally from this StackOverflow question: UIWebView iOS5 changing user-agent as pointed


{{#tags}}- {{label}}
{{/tags}}