RSully / RSColorPicker

iOS color picker view with brightness control, opacity control, and delegation support.
Other
302 stars 77 forks source link

Loupe doesn't always dismiss #26

Closed RSully closed 11 years ago

RSully commented 11 years ago

To reproduce on the view controller branch:

RSully commented 11 years ago

By checking the value of self.window within didMoveToWindow we can remove the loupe when no window is present.

This branch also includes some performance enhancements within didMoveToWindow that prevent us from rerunning genBitmap if the old size is the same as the new size.

This branch also includes the commits I had tested separately to move the demo into a UIViewController subclass and include a button to push more to the nav stack for testing performance.