Titanium Community Questions & Answer Archive

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

Pull tableview trigger update

I have a tableview list loaded on tabbed window, and has a refresh nav. button to call function updating content. Well, instead of that button, i would love to be able hide it behind the tableview, says an arrow pointing up and trigger when user drag and pull the tableview down to some degree, the arrow then point downward and that calls the refresh function.

Will i be able to do that with Titanium mobile on iphone?

Thanks

— asked April 7th 2010 by Daniel Lim
  • drag
  • iphone
  • pull
  • scrollview
  • tableview
0 Comments

5 Answers

  • I know there is the swipe event for tableViews.

    tableView.addEventListener('swipe', function(e)
    {
        tvLabel2.text = 'table view swipe at ' + new Date().getSeconds();
    });
    

    But maybe you can also implement the scroll event on the tableView too,
    take a look to scroll_view_tabs.js in the examples, maybe you can find a workaround to implement what you need.

    You may get the vertical direction and change the background image accordingly.

    scrollView2.addEventListener('scroll', function(e)
    {
        for(v in e)
        {
            Ti.API.info('v ' + v + ' e[v] ' + e[v]);
        }
    });
    
    — answered April 7th 2010 by Simon Facciol
    permalink
    0 Comments
  • Hi Daniel, do you mean like the Tweetie update? - pulling the tableview down reveals a new row which stays until update is complete, when it slides back up.

    Chris.

    — answered April 7th 2010 by Chris Reed
    permalink
    1 Comment
    • I want to do this as well, jus like Tweetie (I mean, Twitter for iPhone). Any updates in this?

      — commented May 29th 2010 by Antonio Silveira
  • Hi Chris, similar to that, how do i go about accomplish that?

    — answered April 7th 2010 by Daniel Lim
    permalink
    0 Comments
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.