Skip to content

Commit

Permalink
去除额外的调用
Browse files Browse the repository at this point in the history
  • Loading branch information
lixiang1994 committed May 5, 2017
1 parent d21a3e5 commit 27c5c88
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions LEEThemeDemo/LEEThemeDemo/LEETheme/LEETheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ typedef LEEThemeConfigModel *(^LEEConfigThemeToIdentifierAndBlock)(NSString *ide
+ (NSString *)currentThemeTag;

/**
全部主题标签
@return 主题标签集合
* 全部主题标签
*
* @return 主题标签集合
*/
+ (NSArray *)allThemeTag;

Expand Down Expand Up @@ -243,13 +243,13 @@ typedef LEEThemeConfigModel *(^LEEConfigThemeToIdentifierAndBlock)(NSString *ide

/** 添加路径设置 -> 格式: .LeeAddKeyPathAndValue(@@"tag" , @@"keyPath" , id) */
@property (nonatomic , copy , readonly ) LEEConfigThemeToT_KeyPathAndValue LeeAddKeyPathAndValue;
/** 添加方法设置 -> 格式: .LeeAddKeyPathAndValue(@@"tag" , @@selector(XXX:XXX:) , id , id) */
/** 添加方法设置 -> 格式: .LeeAddSelectorAndValues(@@"tag" , @@selector(XXX:XXX:) , id , id) */
@property (nonatomic , copy , readonly ) LEEConfigThemeToT_SelectorAndValues LeeAddSelectorAndValues;
/** 添加方法设置 -> 格式: .LeeAddKeyPathAndValue(@@"tag" , @@selector(XXX:XXX:) , @@[id , id]) */
/** 添加方法设置 -> 格式: .LeeAddSelectorAndValueArray(@@"tag" , @@selector(XXX:XXX:) , @@[id , id]) */
@property (nonatomic , copy , readonly ) LEEConfigThemeToT_SelectorAndValueArray LeeAddSelectorAndValueArray;
/** 移除路径设置 -> 格式: .LeeRemoveKeyPath(@@"tag" , @@"keyPath") */
@property (nonatomic , copy , readonly ) LEEConfigThemeToT_KeyPath LeeRemoveKeyPath;
/** 移除方法设置 -> 格式: .LeeRemoveKeyPath(@@"tag" , @@selector(XXX:XXX:)) */
/** 移除方法设置 -> 格式: .LeeRemoveSelector(@@"tag" , @@selector(XXX:XXX:)) */
@property (nonatomic , copy , readonly ) LEEConfigThemeToT_Selector LeeRemoveSelector;

/** 移除全部设置 -> 格式: .LeeClearAllConfig() */
Expand Down Expand Up @@ -342,9 +342,9 @@ typedef LEEThemeConfigModel *(^LEEConfigThemeToIdentifierAndBlock)(NSString *ide

/** 设置路径标识符 -> 格式: .LeeConfigKeyPathAndIdentifier(@@"keyPath" , @@"identifier") */
@property (nonatomic , copy , readonly ) LEEConfigThemeToKeyPathAndIdentifier LeeConfigKeyPathAndIdentifier;
/** 设置方法标识符 -> 格式: .LeeConfigKeyPathAndIdentifier(@@selector(XXX:) , @@"identifier") */
/** 设置方法标识符 -> 格式: .LeeConfigSelectorAndIdentifier(@@selector(XXX:) , @@"identifier") */
@property (nonatomic , copy , readonly ) LEEConfigThemeToSelectorAndIdentifier LeeConfigSelectorAndIdentifier;
/** 设置方法标识符 -> 格式: .LeeConfigSelectorAndIdentifierAndValueArray(@@selector(XXX:XXX:) , @@"identifier" , 0 , @@[id , id]) */
/** 设置方法标识符 -> 格式: .LeeConfigSelectorAndIdentifierAndValueIndexAndValueArray(@@selector(XXX:XXX:) , @@"identifier" , 0 , @@[id , id]) */
@property (nonatomic , copy , readonly ) LEEConfigThemeToSelectorAndIdentifierAndValueIndexAndValueArray LeeConfigSelectorAndIdentifierAndValueIndexAndValueArray;
/** 移除路径标识符设置 -> 格式: .LeeRemoveKeyPathIdentifier(@@"keyPath") */
@property (nonatomic , copy , readonly ) LEEConfigThemeToKeyPath LeeRemoveKeyPathIdentifier;
Expand All @@ -353,7 +353,7 @@ typedef LEEThemeConfigModel *(^LEEConfigThemeToIdentifierAndBlock)(NSString *ide
/** 移除标识符设置 -> 格式: .LeeRemoveIdentifier(@@"identifier") */
@property (nonatomic , copy , readonly ) LEEConfigThemeToIdentifier LeeRemoveIdentifier;

/** 移除全部设置(Josn模式) -> 格式: .LeeClearAllConfigOnIdentifierMode() */
/** 移除全部设置(标识符模式) -> 格式: .LeeClearAllConfigOnIdentifierMode() */
@property (nonatomic , copy , readonly ) LEEConfigTheme LeeClearAllConfigOnIdentifierMode;

@end
Expand Down
4 changes: 2 additions & 2 deletions LEEThemeDemo/LEEThemeDemo/LEETheme/LEETheme.m
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ - (LEEConfigThemeToKeyPath)LeeClearAllConfig_KeyPath{

return ^(NSString *keyPath){

if ([weakSelf.modelThemeKeyPathConfigInfo containsObjectForKey:keyPath]) [weakSelf.modelThemeKeyPathConfigInfo removeObjectForKey:keyPath];
[weakSelf.modelThemeKeyPathConfigInfo removeObjectForKey:keyPath];

return weakSelf;
};
Expand All @@ -971,7 +971,7 @@ - (LEEConfigThemeToSelector)LeeClearAllConfig_Selector{

return ^(SEL selector){

if ([weakSelf.modelThemeSelectorConfigInfo containsObjectForKey:NSStringFromSelector(selector)]) [weakSelf.modelThemeSelectorConfigInfo removeObjectForKey:NSStringFromSelector(selector)];
[weakSelf.modelThemeSelectorConfigInfo removeObjectForKey:NSStringFromSelector(selector)];

return weakSelf;
};
Expand Down

0 comments on commit 27c5c88

Please sign in to comment.