views:

279

answers:

3

Hello, i have another (probably unanswered) question about map views. I have a map view inside a table view cell and i want to disable the table view scrolling if the scrolling begins in the map view. Also the zooming gesture does not function normally. It only functions if the zooming gesture is done horizontally on the iphone display. The same thing happens with swiping gestures. It only affects the map if i swipe the map area horizontally. If i swipe vertically the table view scrolls instead, and i want to disable that. Any ides how to do it?

A: 

Ok, I'm not 100% sure but I think you can stop the scrolling using: UITableView.scrollEnabled = NO;

Also, I'm also pretty sure that you cannot use Gestures on a CustomTableCell although there may be work arounds for this.

I hope that has shed at least a little bit of light on the subject for you.

Neurofluxation
A: 

Did you get an answer to this please? I'm having the same issue and I can't seem to work around it. If you went with another design pattern, please would you mind explaining what you did?

A: 

No i wasn't able to resolve it. In the new iphone os 4.0 beta it is working the way i expected it to work. Scrolling inside the mapview scrolls the mapview and scrolling the table view, outside the mapview scrolls the table view. Scrolling in wasn't that important to me so now scrolling is disabled. But I found these in the change notes for v3.2 of the SDK. There is the UIGestureRecognizer base class and there is a concrete UIPanGestureRecognizer Don't know how useful they are but I would try them if I had more time. I would try to detect zooming and moving gestures and would update the mapview with the data i got from these recognizers.

kudor gyozo