swipe between images
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.
-
you are new… so take a look at the Kitchen Sink Application it is a great resource
-
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