robertwijas / UISS

UIAppearance Stylesheets
MIT License
1.23k stars 80 forks source link

Crash - EXC_BAD_ACCESS in [UISS loadStyleSynchronously] #14

Closed timd closed 11 years ago

timd commented 11 years ago

In the UISS class, queue is defined as a nonatomic, assign property.

When calling the loadStyleSynchronously method, queue isn't retained and a EXC_BAD_ACCESS crash results.

The workaround is to declare the queue property as strong in line 30:

@property(nonatomic, strong) dispatch_queue_t queue; // all style parsing is done on the queue