ios - Image doesn't fit web view -
am displaying image on web view , doesn't fit web view , shows blank white space around border.how can fit or scale image size of web view? nsurl *url = [nsurl fileurlwithpath:path]; nsurlrequest *request = [nsurlrequest requestwithurl:url]; [self.webview loadrequest:request]; self.webview.backgroundcolor=[uicolor blackcolor]; self.webview.delegate = self; [self.webview setscalespagetofit:yes]; try html code snippet <html><body><img src='%@' width='100%' height='100%'></body></html> it fill web view without white space.