Till Swift 1.2 version, UIWebView LoadData was accepting nil values, but Swift 2.0 is throwing error \"Swift does not conform to protocol NilLateralConvertible\".
Swift
Swift 3:
self.webView.loadData(tempData!, MIMEType: "application/pdf", textEncodingName: "UTF-8", baseURL: NSURL() as URL)