开发者

Two resizable UIWebViews inside UIScrollView

开发者 https://www.devze.com 2023-02-09 10:41 出处:网络
I need following view structure, with embedded 2 UIWebViews and 1 UIView (loaded from other xib). But the problem is, because this need to be inside UIScrollView, with same impression like this is si

I need following view structure, with embedded 2 UIWebViews and 1 UIView (loaded from other xib).

But the problem is, because this need to be inside UIScrollView, with same impression like this is single page. (only vertical scrolling need to be enabled).

In those UIWebViews, html content is loaded from NSString.

Size (height) 开发者_开发百科of UIWebViews and child view is variable.

Two resizable UIWebViews inside UIScrollView

Any advice, how to do that?


Important: You should not embed UIWebView or UITableView objects in UIScrollView objects. If you do so, unexpected behavior can result because touch events for the two objects can be mixed up and wrongly handled.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html

However why cant you make a webview that has two iframes, with the content of your two html-files? Then attach this webview to the uiview?

Iframe resource: http://www.w3schools.com/tags/tag_iframe.asp

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号