-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStylers.h
43 lines (29 loc) · 947 Bytes
/
Stylers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// UIView+prAppearance.h
// DynamicNavigationController_Demo
//
// Created by Robert Parker on 21/04/2014.
// Copyright (c) 2014 parob. All rights reserved.
//
#import <UIKit/UIKit.h>
@class Styler;
@interface Stylers : NSObject
@property (nonatomic,retain) NSMutableDictionary *stylerPool;
+ (Stylers*) sharedStylers;
- (void) loadDefaultStylers;
- (void) addStyler: (Styler*) styler;
- (Styler*) getStyler: (NSString*) stylerName;
@end
@interface Styler : NSObject
@property (nonatomic,retain) NSPointerArray *styledObjects;
@property (nonatomic,retain) NSString *name;
@property (nonatomic,retain) id classType;
@property (copy) void (^style) (id);
- (id) initWithName: (NSString*) name classType: (id) classType;
- (BOOL) runStyler: (id) object;
- (void) restyleAllStoredViews;
@end
@interface NSObject (styler)
- (id) applyStylerWithName: (NSString*) stylerName;
- (id) applyStylersWithNames: (NSArray*) stylerNames;
@end