Discussion Forums  >  Uncategorized

Replies: 2    Views: 284

kylewestern
Code is Art
Profile
Posts: 2
Reg: Oct 27, 2011
New York
20
11/18/11 09:50 AM (14 years ago)

HTML Docs arranged in a swipeable gallery?

Hello, Is it possible to create a gallery of HTML docs that the user can swipe between? I love that swiping component of the Image Gallery (plus the added real estate with its tap-to-hide nav bars), but prefer the HTML Doc module for its on-screen flexibility. I understand that this probably isn't something that can be configured via the Dashboard but was hoping someone might have previously encountered this issue and is able to point me in the right direction. Thanks, Kyle
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/18/11 11:37 AM (14 years ago)
Been working on this for a very long time...not many results yet. It's tough to pull this off because the HTML view sort-of takes over the screen tapping events. It has to, consider how it needs to know when a link is tapped, zoomed in, pinched, etc. Capturing a swipe in a UIWebView isn't as easy as it should be with the older releases of iOS. However..iOS 5 has introduced a few new methods for devs to use and it looks like this is doable with less work these days. The other issue is the contents's location. If it's compiled in the app it will load much faster compared to from the web. I would do this: Consider making a UIScrollView screen with a scroller that's about 3x as wide as the device. Three boxes. Left-most box is offscreen to left. Right-most box is offscreen to right. Center box is onscreen. Each box has it's own UIWebView and it's own loaded document. Swiping produces each document in the middle of the screen. Continue swiping to load next, next, prev, prev, etc. This untested idea would require some logic to track what would likely be an array of URL's or document names (if in the project folder) to load. Another couple variables to track which document was loaded, how many are left in the list, etc. This is on our plugin wish list but for sure it'll be awhile before we get anything like it publically availalbe. Until then, hack away!
 
BreezeCourier
Apple Fan
Profile
Posts: 30
Reg: Jun 21, 2012
Taylorville, IL
5,200
like
07/12/12 09:18 AM (13 years ago)
Google Chrome for iOS has a feature that allows you to swipe between tabs now. It's pretty fantastic! I'm still trying to find an relatively easy way to allow swiping side to side in PDF's so that you can flip between newspaper pages in a way that is more natural. Not having a lot of luck.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.