English 中文(简体)
ICT4 - swipe to change UIWebview url?
原标题:iOS4 - swipe to change UIWebview url?

在履行这一目标方面,我想英国广播公司的新闻报道会给你带来什么影响,然后可以 left弃或有权与他人联系。

I m thinking I could set up a UIScrollView in code depending on how many stories are in the queue (I d limit it to a maximum of about 10 anyway) - is this the most logical way or should I be looking at gestures etc? I presume there is some method to detect the swipe in the UIScrollView so I could load the next story just as it s being requested?

欢迎任何要点或帮助。

最佳回答

是的,正是以这种方式执行。 事实上,我建立了一些应用方法,而且效果良好。

简而言之,创立了UIScroll公司 观点,将其 set成“条码”[数据集:YES],并实施代表方法<条码>-(避免)滚动 观点:发展 观点* 观点(认为你必须使用程序UIScrollViewDelegate)了解页数的变化。

就网络观点而言,你创建并补充了你通常这样做的滚动观点。

To know at which scroll page you are at, you may want to use a code like this in the scrollViewDidSCroll method:

int page = (scroll.contentOffset.x / scroll.frame.width);

然后,你可以使用一个实例变数,把目前使用的剪辑放在网页上,而以前的代码则可以检查用户是否有足够的滚动,以把它视为一个新页。

问题回答

暂无回答




相关问题
Navigate a WebView

With a webview is it possible to set up a simple Back button (either in a navigation bar or a top toolbar) that doesn t show the back button on the first URL of the WebView - and only appearing on a ...

How to display the Authentication Challenge in UIWebView?

I am trying to access a secure website through UIWebView. When I access it through safari, i get an authentication challenge but the same does not appear in my UIWebView in the application. How can I ...

UIWebView with links

I am creating a webview and loading content using "loadHTMLString" The content is loading I just can t get the links to work ex linking to google.com. Any help would be great. UIWebView* newWeb = [[...

Using multiple UIWebViews in a UIScrollView

I am using 5 UIWebViews in a UIScrollView to show the result of my game. Intention is to allow the user to scroll through the results screen. I had a problem where the UIWebViews won t load when ...

Image not displaying from local html on iPhone webview

I am calling an infoPage.html as below with an image from Resources and referenced as img src="eye.png" in the html, the text displays correctly but I cannot load the image (only a ? appears), any ...

Get Text UIWebView PHP script

Basically my app has a UIwebView which loads a php script with input of user data. The script then uses printf(some info). This all works and it prints it right the UIWebView. Basically what I want to ...

UIWebView shows error message

I am getting this error message in the console, while I am trying to load a HTML page in UIWebView? "void SendDelegateMessage(NSInvocation*): delegate failed to return after waiting 10 seconds. main ...

热门标签