Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
446 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
# TinyPart | ||
*** | ||
TinyPart是一个由Objective-C编写的面向服务的iOS模块化实践框架。 | ||
## 架构说明 | ||
## 特点 | ||
## 用法 | ||
## 开源许可证 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// TPNotificationCenter.h | ||
// TinyPart | ||
// | ||
// Created by Yao Li on 2018/4/11. | ||
// Copyright © 2018年 yaoli. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@class TPNotificationMaker; | ||
@protocol TPModuleProtocol; | ||
|
||
@interface TPNotificationCenter : NSObject | ||
+ (instancetype)centerWithModule:(Class)module; | ||
|
||
- (void)broadcastNotification:(void(^)(TPNotificationMaker *make))makerHandler; | ||
- (void)reportNotification:(void(^)(TPNotificationMaker *make))makerHandler targetModule:(NSString *)moduleName; | ||
|
||
- (void)addObserver:(id)observer selector:(SEL)aSelector name:(NSString *)aName object:(id)anObject; | ||
@end | ||
|
||
@interface TPNotificationMaker : NSObject | ||
- (TPNotificationMaker *(^)(NSString *name))name; | ||
- (TPNotificationMaker *(^)(id object))object; | ||
- (TPNotificationMaker *(^)(id userInfo))userInfo; | ||
@end |
Oops, something went wrong.