iphone - how to draw a grid on a UIView -


i want create grid 20x20 squares horizontal , vertical lines. goal add gesture recognizer location of square.

how can create grid on uiview?

thanks

there 2 options 1. if deployment target ios6.0 can use uicollectionview, provides necessary delegates achieve want 2. second option construct custom cell square(imageview ).

hope you.. :)

thankx


Comments