nicklockwood / CubeController

CubeController is a UIViewController subclass that can be used to create a rotating 3D cube navigation.
Other
142 stars 20 forks source link

UIButton don't work #2

Closed paulfavier closed 10 years ago

paulfavier commented 10 years ago

Hi :) First thing, thx for this work it's so cool !!

When i add a button on the latest uiViewcontroller, i can't click on it ...

Do you have an idea ?

Thx a lot !

nicklockwood commented 10 years ago

Can you explain what you mean by "latest"?

paulfavier commented 10 years ago

Oh sorry for my english ^^ i have 3 viewController, for me the latest is the third on the right :)

nicklockwood commented 10 years ago

Do you have buttons that work correctly on the other controllers?

nicklockwood commented 10 years ago

Yes, I think I see the problem. I'll fix it.

paulfavier commented 10 years ago

Can you tell me more ? i like to understand the problem :)

nicklockwood commented 10 years ago

When you rotate the views, although the 3rd view appears to be in front in 3D dimensions, UIKit events are propagated according to the order of views in their superview.

So one of the views on your first view controller is most likely intercepting the taps, preventing them from reaching the button on your third view controller (the one that appears to be in front).

paulfavier commented 10 years ago

ok i understand thx ! I would like to use this for my school project, do you think it's hard to fix ?

nicklockwood commented 10 years ago

I've fixed it.

paulfavier commented 10 years ago

Ahahah seriously ? You are awesome !

nicklockwood commented 10 years ago

Yep :-) Fixed in 1.0.1.

paulfavier commented 10 years ago

Thx a lot !!