How to prepend url with http:// using stringWithFormat in Swift
问题 I'm building a custom browser using UIWebView. Use case: User enters "www.abc.com" into the address bar. Error below thrown: Error Domain=WebKitErrorDomain Code=102 "Frame load interrupted" UserInfo=0x19860770 {NSErrorFailingURLKey=file://www.abc.com, NSErrorFailingURLStringKey=file://www.abc.com, NSLocalizedDescription=Frame load interrupted} Reason: the URL needs to be prepended with "http://" I would like to use the stringWithFormat method of NSString, but I can't seem to get the syntax