honcheng / PaperFold-for-iOS

Paper folding animation for iOS
Other
2.7k stars 399 forks source link

How can I disable touch on center view when I'm showing the right fold? #51

Closed johntiror closed 11 years ago

johntiror commented 11 years ago

Hi, like in the title I like to disable the touch events on the center view when I'm showing the map on the right. How can I do that?

honcheng commented 11 years ago

So you don't want the ability to drag the centre view back to restore it, or you have other subviews in the centre view that you want to disable?

On 26 Feb, 2013, at 5:04 PM, johntiror notifications@github.com wrote:

Hi, like in the title I like to disable the touch events on the center view when I'm showing the map on the right. How can I do that?

— Reply to this email directly or view it on GitHub.

johntiror commented 11 years ago

In the center view I have a table view, but I don't want to allow the user to select a cell if the map is shown. But, sure, I want to be able to drag back the center view

honcheng commented 11 years ago

I don't think there is a straight forward way to do this now automatically.

Easiest way I can think of, is that there is a delegate callback when the fold state changed. You can enable/disable your table view inside the delegate callback.

On Tue, Feb 26, 2013 at 6:19 PM, johntiror notifications@github.com wrote:

In the center view I have a table view, but I don't want to allow the user to select a cell if the map is shown. But, sure, I want to be able to drag back the center view

— Reply to this email directly or view it on GitHubhttps://github.com/honcheng/PaperFold-for-iOS/issues/51#issuecomment-14104594 .

johntiror commented 11 years ago

Thanks, I think it's a good idea!