matteogobbi / MGSpotyViewController

Beautiful viewController with a tableView and amazing effects like a viewController in the Spotify app.
MIT License
1.02k stars 106 forks source link

Tap events on image view to edit image #14

Closed shahankit closed 9 years ago

shahankit commented 9 years ago

I'm trying to add tapgesturerecognizer on imageView inside the overview and add a selector event similar to contact button. But it's not working.

matteogobbi commented 9 years ago

Do you have the last version?

shahankit commented 9 years ago

Yeah cloned yesterday. I found the hitTest code in MGSpotyView but that helps only for button like Contact button in demo, but I think tap events are not forwarded to _overView and imageView can only have tap gesture.

matteogobbi commented 9 years ago

I will have a look this night or next days.

shahankit commented 9 years ago

Ok thanks.

matteogobbi commented 9 years ago

Hi @shahankit I just tested and everything works.

I think to have figured out what is your problem. Did you do: imageView.userInteractionEnabled = YES; ?

An UIImage of default has the interaction disabled. So you should activate it ;)

I just pushed the demo project with the working tap recognizer ;)

Enjoy!

shahankit commented 9 years ago

Oops missed that detail. Thanks. On Apr 6, 2015 3:21 AM, "Matteo Gobbi" notifications@github.com wrote:

Hi @shahankit https://github.com/shahankit I just tested and everything works.

I think to have figured out what is your problem. Did you do: imageView.userInteractionEnabled = YES; ?

An UIImage of default has the interaction disabled. So you should activate it ;)

I just pushed the demo project with the working tap recognizer ;)

Enjoy!

— Reply to this email directly or view it on GitHub https://github.com/matteogobbi/MGSpotyViewController/issues/14#issuecomment-89860460 .