
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
How to make iOS UIWebView display a mobile website correctly?
To display the mobile website correctly, try the following fix:
mywebview.scalesPageToFit = YES; mywebview.contentMode = UIViewContentModeScaleAspectFit;
You can also set the following:
NSString *js = [NSString stringWithFormat:@"document.body.style.zoom = 0.8;"]; [webView stringByEvaluatingJavaScriptFromString:js];
- Related Articles
- Different Tools To Make Your Website Mobile Friendly
- UIWebView HTML5 Canvas & Retina Display
- How to make a Website step by step?
- How to Make Your WebSite – “Device Friendly”
- How to Make Your Site Mobile Friendly – The Mobile SEO?
- How to make a background 25% transparent on iOS
- How to Make Your Blog/Website SEO Optimized?
- How to open a website in iOS's web browser from my application?
- JavaScript: How to Detect if a Website is Open on a Mobile or a Desktop?
- How to make dotted/dashed line in iOS?
- How to make the corners of a button round in iOS?
- How to get device make and model on iOS?
- How to display multiple images in one figure correctly in matplotlib?
- How much does it cost to make an iOS app?
- How to make phone call in iOS 10 using Swift?

Advertisements