Registering touch events of layered uiimageviews with overlapping transparent properties

I'm new at this and have looked at several posts already related to this question but none seem to provide the answer I need.

I have multiple layered uiimageviews within one "base" uiimageview. The uiimageviews display arrays of images with small opaque colored parts and large transparent parts. How do I get a touch event to ignore the layers of transparent parts to activate the opaque underlayer?

Thanks

Answers


By default, the userInteractionEnabled property of UIImageView is disabled. If you want only the "lowest" view to receive touch events, you should create a subclass of UIImageView in which you explicitly set userInteractionEnabled = YES; and implement touchesBegan, etc. Let me know if you have any questions.


Need Your Help

MySQL join two tables to find all rows EXCEPT the row with the max value

mysql sql join max

I'm trying to write a query that will find all rows in a group EXCEPT the row with the max value. I have a query so far that finds the row with the max value, but now I need to find all the rest o...

Do modern-day VisualStudio .NET projects still use Visual SourceSafe, or SVN?

.net svn visual-sourcesafe

I'm getting back into .NET after numerous years in PHP/MySQL back in 2002 on Microsoft projects we always used Visual SourceSafe and everyone hated it in all my PHP/MySQL projects we used SVN and

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.