asafkorem / COSTouchVisualizer

Visualize touches, gestures and long presses on your iPhone or iPad
https://www.conopsys.com/COSTouchVisualizer/
MIT License
960 stars 70 forks source link

Check rippleImage existence before making it #12

Closed sodastsai closed 10 years ago

sodastsai commented 10 years ago

The implementation of rippleImage property should check whether the _rippleImage is nil or not. (Just like touchImage)

Current implementation just set the ivar directly which makes

  1. Custom image will be replaced when calling this property. (which is not what we want :-1: )
  2. The default image is redrawn every time calling this property. (it's inefficiency)
joeblau commented 10 years ago

:+1: Thanks for catching this!