Multiple Swipes detection on the iPhone
Well I have spent the last day or two working on detecting multiple swipes. Today I made some progress. First I was able to alter some swipe detection code from “Beginning iPhone Development” apress book to also detect left right up and down in addition to number of fingers and horizontal or vertical. I saw some info about up, down, left, right in the iphone developers cookbook.
I also finally got both of my iPhones setup on my development platform as I don’t think there is a way to do multiple swipes in the simulator.
Anyway I hit a bug that I spent most of the day trying to figure out the problem why it was only ever able to detect one finger and it turned out to be a stupid checkbox in IB. I finally found the solution in this post. http://www.iphonedevsdk.com/forum/iphone-sdk-development/11294-multiple-swipes-not-recognized.html
“make sure you have your view set to receive multi-touch events, otherwise the iPhone will only send you info about the first finger… if you’re using Interface Builder, it’s a checkbox for the view. otherwise you can do it in code as well.”
Maybe tomorrow I will try to figure out how to connect my swipes to be able to change views. I kind of have it working but its all in one method and I want to figure how I can keep the swipe code separate from the switch views code.
Yep as you can tell I really have no idea what I am doing… I am very much a beginner.