Attempting a weather-like UI of movable tableviews

Discussion in 'iOS Programming' started by beachdog, Nov 6, 2008.

  1. macrumors member

    Aug 10, 2008
    I want to accomplish a UI somewhat similar to the weather app, where you can slide the cities/locations back and forth in and out of view. In the case of the weather app, each city seems to be represented by a tableview. In the case of my app, I also have several tableviews that I want similarly to be laid horizontally side by side, and have the user slide them back and forth.

    I understand a bit about the UITouches interface that will be necessary for this, but my question has to do with how can I overide the default touch behavior that tableviews already exhibit? For instance, if I swipe a tableview horizontally, that is used to display the delete button over the cell I swiped. In this app however, I would not want that -- I want instead to receive that touch notification so I can start repositioning the view under the user's finger to give the visual feedback of shifting the entire view in one direction and uncovering a new tableview that slides in. Is there a way I can get touch notifications for anywhere on the application window, without them being "stolen" by the tableview underneith? And if I can, the other side of the problem is that I still do want notifications such as when the user presses a cell because I in fact still will have operations like delete of a cell.

    Any general thoughts on how to do this? I'm not so much looking for specific code as much as just any knowledge about best general approach.
  2. macrumors member

    Jul 13, 2008
    I'd also like to find out how to do this. Any pointers to sample code, etc. would be useful.


  3. macrumors member

    Sep 17, 2007
    San Diego, CA

Share This Page