Latest 0.0.1
Homepage https://github.com/yuansirios/YSRouter
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform

自己YY的组件路由器,简单实现功能,供参考

Contents

  • YSRouter
    • YSRouter.h
    • NSObject+YSRouter.h

Installation

YSRouter is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'YSRouter'

Author

yuansirios, [email protected]

Question

这里有几个问题,希望大家帮我思考下

initWithFrame:调用有问题,CGRect不知道怎么传过去

UIView *view = [[YSRouter getViewInstance:@"YSDetailView"] sendInstanceEvents:@"initWithFrame:" params:@[]];

NSLog(@"%@",view.description);

Latest podspec

{
    "name": "YSRouter",
    "version": "0.0.1",
    "summary": "u81eau5df1YYu7684u7ec4u4ef6u8defu7531u5668uff0cu7b80u5355u5b9eu73b0u529fu80fduff0cu4f9bu53c2u8003u4ea4u6d41",
    "homepage": "https://github.com/yuansirios/YSRouter",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "yuansirios": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yuansirios/YSRouter.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "YSRouter/Classes/**/*",
    "requires_arc": true,
    "exclude_files": "YSRouter/Classes/NSObject+YSRouter.{h,m}",
    "subspecs": [
        {
            "name": "no-arc",
            "source_files": "YSRouter/Classes/NSObject+YSRouter.{h,m}",
            "requires_arc": false
        }
    ]
}

Pin It on Pinterest

Share This