mardi 24 mars 2015

WebView Keyboard Error due to scale

I have created a webview based application and I am testing this out -- On the iPhone when I press in the input box only the toppling of the keyboard is visible and I can only see the done button and arrows


When I test on the iPad I get a scroll bar and the input boxes have to be scrolled up to be seen. When I press in the box if I scroll down the keyboard is visible.


I am using a simulator to try this. How do i ensure that their is space at the top for the keyboard to be visible?



override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.

//webView.scalesPageToFit = true
webView.keyboardDisplayRequiresUserAction = false

let urlRequest = NSURL(string:url)
let request = NSURLRequest(URL: urlRequest!)
webView.loadRequest(request)
view.addSubview(webView)
}



Aucun commentaire:

Enregistrer un commentaire