ddeville / DDPageControl

An easily customizable alternative to UIKit's UIPageControl
http://www.ddeville.me
Other
275 stars 67 forks source link

CGColorRef fix for ARC #4

Closed atticus closed 12 years ago

atticus commented 12 years ago

Storing the CGColorRef instead of the UIColor object was causing ARC to release the UIColor object. By the time the CGColorRef was called in some cases, the color object was gone, and the app would crash. Now using the UIColor -CGColor method on-demand instead.

atticus commented 12 years ago

DDPage control is really great, thanks! Just had an ARC-related crasher that needed fixing though. There's a good reference here about this:

http://weblog.bignerdranch.com/?p=296