Scrollable div on iPhone without using 2 fingers?

Posted by Brad Parks on Stack Overflow See other posts from Stack Overflow or by Brad Parks
Published on 2009-03-05T15:48:00Z Indexed on 2010/05/13 2:04 UTC
Read the original article Hit count: 495

Filed under:
|
|
|

Hi there;

I've got a UIWebView embedded in my iPhone app, and I'd like to keep a locked header and footer DIV on the page at all times, with a scrollable center DIV.

I know that I could do this using a header/footer that are UIView controls, but I want the header and footer to be HTML divs, as a pure HTML/JS/CSS solution will be easier to port to Android/PalmPre/AdobeAir, which is going to be on my todo list relatively soon.

I can do this using techniques like the one mentioned here:

http://defunc.com/blog/?p=94

But this requires that the user use 2 fingers to scroll the div, which is not satisfactory to me...

Any suggestions on how to do this?

Thanks,

Brad

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk