ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 简要介绍 该库为健康百科功能模块,包含疾病库、药物库、急救库、化验单解读、疫苗接种、小工具查询模块,可以在 ~~~ http://192.168.0.116/monkey/iOS-URHealthInfo.git ~~~ 下载示例代码,然后运行查看效果。 ## 导入方式 #### 使用Cocoapods导入 要使用该库,需要依赖基础模块,在Podfile文件中加入: ~~~ platform :ios, '7.0' target 'Test' do pod 'iOS-URAlert', :git => 'http://192.168.0.116/monkey/iOS-URAlert.git' pod 'iOS-URLoadIndicator', :git => 'http://192.168.0.116/monkey/iOS-URLoadIndicator.git' pod 'iOS-URBaseMacros', :git => 'http://192.168.0.116/monkey/iOS-URBaseMacros.git' pod 'iOS-URNetworking', :git => 'http://192.168.0.116/monkey/iOS-URNetworking.git' pod 'iOS-URLink', :git => 'http://192.168.0.116/monkey/iOS-URLink.git' pod 'iOS-URHealthEncyclopedia', :git => 'http://192.168.0.116/monkey/iOS-URHealthEncyclopedia.git' end ~~~ 然后在终端执行命令: ~~~ $ pod install ~~~ 或者 ~~~ $ pod update ~~~ #### 手动导入 手动导入还需要手动添加第三方库: ~~~ AFNetworking (3.1.0) ReactiveCocoa (2.5) Masonry (1.0.2) MJRefresh (3.1.12) iOS-URAlert iOS-URLoadIndicator iOS-URBaseMacros iOS-URNetworking iOS-URLink ~~~ ## 使用说明 使用该库需要先设置网络相关,如下所示: ~~~ [URNetworking setDefaultHttpUrl:@"http://192.168.0.12:8080/api/exec/3fba2d7e-6a59-492d-a6d1-b56538ccedf4.htm"]; [URNetworking setTuc:@"3"]; [URNetworking setVuc:@"1.0.0"]; [URNetworking setSuc:@""]; [URNetworking setDuc:@""]; [URNetworking setKuc:@""]; ~~~ 相应接口可在 URNetworking 头文件中查看。 然后在需要跳转到“健康资讯”的地方直接调用URHealthInfoMainViewController 即可。 ~~~ self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:[NSClassFromString(@"URHealthEncyclopediaHomeViewController") new]]; ~~~