NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
Loads and caches information regarding a specific stylesheet.
Use this object to load and parse a CSS stylesheet from disk and then apply the stylesheet to views. Rulesets are cached on demand and cleared when a memory warning is received.
Stylesheets can be merged using the addStylesheet: method.
Cached rulesets are released when a memory warning is received.
Tasks | |
(Class) | + rulesetClass |
(void) | + setRulesetClass: |
Properties | |
NSSet * | dependencies property |
Loading Stylesheets | |
(BOOL) | - loadFromPath:pathPrefix:delegate: |
(BOOL) | - loadFromPath:pathPrefix: |
(BOOL) | - loadFromPath: |
Compositing Stylesheets | |
(void) | - addStylesheet: |
Debugging | |
(NSString *) | - descriptionForView:withClassName:inDOM:andViewName: |
Applying Stylesheets to Views | |
(NICSSRuleset *) | - rulesetForClassName: |
A set of NSString filenames for the @imports in this stylesheet.
Loads and parses a CSS file from disk.
path | The path of the file to be read. |
pathPrefix | [optional] A prefix path that will be prepended to the given path as well as any imported files. |
delegate | [optional] A delegate that can reprocess paths. |
Merge another stylesheet with this one.
All property values in the given stylesheet will overwrite values in this stylesheet. Non-overlapping values will not be modified.
Build a string describing the rules that would be applied to the view given a css class name in a DOM.
Current implementations output Objective-C code that use viewName as the target.
Returns an autoreleased ruleset for the given class name.
className | Either the view's class as a string using NSStringFromClass([view class]); or a CSS class selector such as ".myClassSelector". |
Set the class created to hold rule sets.
Default is NICSSRuleset