Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

swipe between images


I'm very new to appcelerator, so please forgive the basic question. I am creating an app to display wedding photos.

I am trying to write an app to display images that are saved locally on the iPhone (but not in the iPhone gallery). Is there a simple way to "swipe" between images, just like in the gallery? I would basically like to mimic the gallery functions.

Any thoughts or a push in the right direction would be appreciated!

— asked November 16th 2010 by Nick Bodmer
  • images
  • iphone
  • mobile
  • swipe

4 Answers

  • Accepted Answer

    Hi Nick,

    It's nice of you to apologise but, really, there is no need. So, welcome! :)

    I think the view I would experiment with first to accomplish your intention, is the scrollableView, which allows you to swipe horizontally between views on top of a window. See the scroll_views_scrollable.js example in the KitchenSink. Also look at image_view_file.js that shows displaying an image from a local file.

    There are a number of other ways to do it though.

    — answered November 16th 2010 by Paul Dowsett
    1 Comment
    • Thanks. I was looking in the kitchen sink, but didn't know where to look. I'll check this out!

      — commented November 16th 2010 by Nick Bodmer
  • you are new… so take a look at the Kitchen Sink Application it is a great resource

    — answered November 16th 2010 by Aaron Saunders
  • Hey Nick (Heh, we share the same name!),

    If you need any sample code (Other than scroll_views_scrollable.js), feel free to Email me at coltonarabsky@me.com. I did a thing like this myself (Not wedding photos, but swipe-able images) and would be happy to help you in any way I can :)

    — answered November 16th 2010 by Colton Arabsky
  • Nick,

    If you add each image to a new view, or window, you can assign the 'swipe' event listener.


    — answered November 16th 2010 by Steve Clarke
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.