update Licence
XMultiTabModule-iOS是支持底部异型Tab的底部导航控制器。
通过实现SSSMultiTabDelagate中的两个代理方法,可以实现Native和Web页面的自定义加载。
To run the example project, clone the repo, and run pod install from the Example directory first.
pod install
实现以下两个协议,分别是Web和Native页面的加载
@protocol SSSMultiTabDelagate <NSObject> @optional - (UIViewController *)loadWebWithURL:(NSString *)url; - (UIViewController *)loadNativeWithModule:(NSString *)module params:(NSString *)params; @end
支持进入默认选中Tab,设置Tab的背景色
"tabConfig": { "selectIndex": 1, "tabBackground": "#FFFFFF" }
这是单个Tab的配置
{ "specialType": 0, // 是否是异形Tab,1 是,默认0非异形 "tabType": 1, // tab类型 0是web,1是native "tabName": "品类秒杀", // tab描述 "tabImage": "https://m.360buyimg.com/seckillcms/jfs/t1/209124/8/14576/8527/61cef392E721d5c8d/a14d75499c085949.png!q70.jpg.webp", // tab非选中背景图片 "selectTabImage": "https://m.360buyimg.com/seckillcms/jfs/t1/218045/39/9722/8643/61cef38fEc4dbaffe/2713c583a730d4be.png!q70.jpg.webp", // tab选中背景图片 "module": "openappurl:native", // 路由 "params": "{\"title\":\"品类秒杀\"}", // 传递原生容器参数,有多少传递多少 "link": "https://prodev.m.jd.com/mall/active/G7sQ92vWSBsTHzk4e953qUGWQJ4/index.html" // H5链接 }
iOS 9.0
XMultiTabModule-iOS is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'XMultiTabModule-iOS'
lixianke1, lixianke1@jd.com
XMultiTabModule-iOS is available under the MIT license. See the LICENSE file for more info.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
XMultiTabModule-iOS
XMultiTabModule-iOS是支持底部异型Tab的底部导航控制器。
通过实现SSSMultiTabDelagate中的两个代理方法,可以实现Native和Web页面的自定义加载。
Example
To run the example project, clone the repo, and run
pod installfrom the Example directory first.Usage
实现以下两个协议,分别是Web和Native页面的加载
支持进入默认选中Tab,设置Tab的背景色
这是单个Tab的配置
Requirements
iOS 9.0
Installation
XMultiTabModule-iOS is available through CocoaPods. To install it, simply add the following line to your Podfile:
Author
lixianke1, lixianke1@jd.com
License
XMultiTabModule-iOS is available under the MIT license. See the LICENSE file for more info.