swipe between images

You must Login before you can answer or comment on any questions.

Hello,

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!

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 3 years ago by Paul Dowsett
answer permalink
1 Comment
  • Thanks. I was looking in the kitchen sink, but didn't know where to look. I'll check this out!

    — commented 3 years ago by Nick Bodmer

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 :)

Nick,

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


http://www.srcnix.com

Your Answer

Think you can help? Login to answer this question!