Sha256: 15349ec28c9ea09481fe8eecb0f08ac8b448af2d6edbfba00d5fa2efbe11a8aa

Contents?: true

Size: 898 Bytes

Versions: 3

Compression:

Stored size: 898 Bytes

Contents

//
//  <%= @prefixed_module %>RouterRegister.m
//  <%= @project %>
//
//  Created by <%= @author %> on <%= @date %>.
//
//

#import "<%= @prefixed_module %>RouterRegister.h"

#import <YKRouterComponent/YKRouterComponentHeader.h>
#import <YKCategoryComponent/YKCategoriesComponentHeader.h>

#import "<%= @prefixed_module %>RouterDefine.h"

#import "<%= @prefixed_module %>DemoViewController.h"


@implementation <%= @prefixed_module %>RouterRegister

@YKRouterRegister() {

[[YKRouterComponent shareInstance] ykRegisterUrlPartterns:kDemoRouterString error:nil action:^(YKRouterUrlRequest * _Nonnull urlRequest, YKRouterUrlCompletion  _Nonnull completetion) {

        <%= @prefixed_module %>DemoViewController *vc = [[<%= @prefixed_module %>DemoViewController alloc] init];
        [[UIViewController yk_topViewController].navigationController pushViewController:vc animated:YES];

    }];

}

@end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yk_command-0.3.2 lib/yk_command/template/objc/RouterRegister.m
yk_command-0.3.1 lib/yk_command/template/objc/RouterRegister.m
yk_command-0.3.0 lib/yk_command/template/objc/RouterRegister.m