CocoaPods trunk is moving to be read-only. Read more on the blog, there are 11 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Nov 2017 |
Maintained by JerryWong.
A solution for iOS modules and components separation. You can route to viewController or perform native block with url.
[JWIntentContext registerRouterClass:"LoginViewController"
forKey:@"login"];[JWIntentContext registerHandler:^(NSDictionary *param) {
NSLog(@"%@", param[@"message"]);
}
forKey:@"testAlert"];JWRouter *intent = [[JWRouter alloc] initWithSource:self
routerKey:@"login"];
[intent submit];
JWIntent *intent = [JWIntent intentWithURLString:@"router://login?extraData={\"username\":\"jerry\"}"
context:nil];
[intent submit];
JWIntent *intent = [JWIntent intentWithURLString:@"handler://testAlert?extraData={\"title\":\"Hello Alert\",\"message\":\"I have a message for you.\"}"
context:nil];
[intent submit];
To integrate JWIntent into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'JWIntent'Then, run the following command:
$ pod install(MIT license)