How to add subview to a webview so that the subview would scroll along with webview?
来源:互联网 发布:数据库表设计面试题 编辑:程序博客网 时间:2024/05/05 22:31
碰到了这么个问题,请教了一下同事,一搜这里也有。
How to add subview to a webview so that the subview would scroll along with webview?
I have webview.
Now I want to add a subview to it. I added it using addsubview method.
The view got added, but did not scrolled with webview.
I want my subview to be scrolled with the webview.
How can I do that?
Regards, Akshay.
8down vote
You simply need to add your subview to the UIScrollView
of the UIWebView
like this to have your subview scroll with the webview content:
[webView.scrollView addSubview:youSubView];
- How to add subview to a webview so that the subview would scroll along with webview?
- How to bring a subView to the front a UIView OR toBack a UIView
- How to add subview inside UIAlertView for iOS 7
- FCKEditor 2.x: How to add a new button with custom javascript to the toolbar
- How do I add an integer value with javascript (jquery) to a value that's returning a string?
- how to quit webview player
- How to add a user to the sudoers list
- android - How to make a phone call from webview
- How to arrange 10 digits so that the product of the some of them is equal to a number represented by the remaining digits
- To see an outline of a view’s subview hierarchy at runtime
- how to add a member into the PDS using JCL
- How to add a logo into the gerber file?
- Use jQuery to scroll to the bottom of a div with lots of text
- How to add a button to PreferenceScreen
- How would you like to integrate with PayPal?
- How to add a new MimeType to a Virtual Directory with VC++?
- How to add a new MimeType to a Virtual Directory with VC++?
- How to Config the Pi with a Static IP
- C风格字符串
- At least one JAR was scanned for TLDs解决办法
- linux 查看文件内容的命令
- ISO/OSI体系结构七层模型
- 小米公司2013校园招聘笔试题(研发)
- How to add subview to a webview so that the subview would scroll along with webview?
- Spring从菜鸟到高手(二)AOP的真正实现
- android批量删除 应用
- hibernate中java.lang.IllegalArgumentException异常可能的原因
- 移植opencv-2.4.6到tiny210v2
- jQuery.validate.js基本使用
- iphone开源项目列表收集
- eclipse中UTF-8设置
- SQL删除重复数据只保留一条