Community Questions & Answers

Stop animation

Hello I am trying to stop an animation. I looked into kitchensink app how they do it, but it doesn't seem to work for me. I use the following code: ~~~ var a = Titanium.UI.createAnimation(); a.top = 400; a.left = 0; a.duration = 5000; flag.animate(a,...

Cancel User swipe/touchmove

Hey! Is there a way to cancel a user event like swipe or touchmove? I want to cancel a swipe gesture after it reaches a certain point. ~~~ var view1 = Ti.UI.createView(); var view2 = Ti.UI.createView({backgroundColor:'#123'}); var view3 =...

Cancel upload

Hi Guys, I have a bit of a dilemma to do with Facebook uploading of images. I had a look through Q & A as well as the API docs regarding cancelling an upload. The problem I'm having is in my app there is a Facebook upload button that takes a...

Canceling video loading

What is the designated way to interrupt video loading (from network)? I set the url of the videoplayer and add an eventlistener for the loadstate. I want the user beeing able to cancel the loading. It's an app for iPad exclusive.

How to cancel an animation

I spent a few minutes trying to find a cancel or a stop animation function in the API, and then after looking at several KitchenSink examples I found the solution in animation_points.js Basically you call animate() with nothing to stop the current...

Clear notification automatically

Can I clear notification automatically? I want to show "Ti.App.iOS.scheduleLocalNotification", but I want to clear the notification without tap. I think I can use "Titanium.App.iOS.LocalNotification.cancel", but I don't know how to use...

Searchbar animate cancel button

Hi, I have a searchbar that is NOT connected to a table view. I wan't to mimic the animation of the cancel button when the searchbar gains focus if it's connected to a tableview. On focus I set showCancel to true and on blur I set it to false. But this...

Adding Button to Tab Navbar

Hi, I had a working application which opened up a modal window with a toolbar at the top that had a close button that would close the window. Well, I switched from that toolbar to a tabgroup toolbar, but now I can't show the cancel button on the toolbar....

Cancel a close event

Is there a way to cancel the close event - ie when a user hits the back button? I have a window, which displays a popup view in response to user input. I'd like to close the popup if it's open - otherwise close the window. I have an event listening on...

Showing 1-21 of 21