ios - UIWebView sizeThatsFit works incorrect with 64bit -


i have got strange behaviour in app webview. have string html code. put webview. in webviewdidfinishload resize webview. works fine long time. convert app 64bit. webview works still fine 32bit iphones (iphone4 example). 64bit iphone (iphone6 or simulators) in majority of cases calculated height ok, 1, everytime same content.

-(void) webviewdidfinishload:(uiwebview *)awebview{ [awebview stringbyevaluatingjavascriptfromstring:@"document.body.style.webkittouchcallout='none';  document.body.style.khtmluserselect='none'"];  cgrect frame = awebview.frame; frame.size.height = 1; frame.size.width = awebview.superview.frame.size.width-frame.origin.x*2; awebview.frame = frame; cgsize fittingsize = [awebview sizethatfits:frame.size]; fittingsize.width = awebview.superview.frame.size.width-frame.origin.x*2; frame.size = fittingsize; awebview.frame = frame; } 

can me why sizethatfits not working correct?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -