Here is the sample code to get the number of taps on a view in Corona SDK.

function button:tap( event )
	print("Number of taps : "..event.numTaps)

button:addEventListener( "tap", button )

here button is a displayObject like an image or a UI Button and event.numTaps gives the number of Taps on that view.


Leave a Reply

Your email address will not be published. Required fields are marked *




Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.