Pixate / pixate-freestyle-ios

Pixate Freestyle for iOS
Apache License 2.0
848 stars 134 forks source link

Cache optimization and bug fixes. #68

Closed iWeaverMan closed 10 years ago

pcolton commented 10 years ago

@iWeaverMan Would you mind taking a look at the latest code (tag v2.1.1RC1) and make sure your files were integrated properly? I had merge conflicts and want to make sure I didn't miss anything. Specifically the work you did for styleChangeable.

Also, would you mind explaining the use of styleChangeable? Thanks.

iWeaverMan commented 10 years ago

Everything's fine.

styleChangeable prevents using cached data. For instance, in situation when a style is set programmatically depending on an imageView data placed on a UITableViewCell (different values for different cells - icon1, icon2, icon3, etc.)

The CSS table looks like this:

documentsListCell .icon1 {

background-image: url(documents://Theme.bundle/icons/01.svg);

}

documentsListCell .icon2 {

background-image: url(documents://Theme.bundle/icons/02.svg);

}

documentsListCell .icon3 {

background-image: url(documents://Theme.bundle/icons/03.svg);

}