Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-09-2009, 12:11 AM   #3 (permalink)
BrianSlick
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

I did some work on an app that did this, and the basic approach was:

1. Add an overlay view that detects touches.
2. Manually keep track of the current row index.
3. Process the touches. If swipe up, increment the index; swipe down, decrement.
4. Use scrollToRowAtIndexPath:atScrollPosition:animated: with your new index

No idea if this is the best approach. Also, actual tapping of the rows was not required in this case, which is good because the overlay view was intercepting touches. If you would need to select rows, you'd have to do some work correlating touch coordinates to table rows, and then triggering the select action yourself.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
 

» Advertisements
» Online Users: 280
22 members and 258 guests
ADY, AppAnnex, chemistry, fkmtc, HemiMG, her-ur, iDifferent, ilmman, leahov, MarkC, marto1914, nicko, padsoftware, pavanindira, Raffaello, sneaky, sojourner, syver, tathaastu, timle8n1, touchcream, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,712
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:36 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.