合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## 简要介绍 该库为医院导航功能模块,包括医院介绍、地图导航、楼层导航、周边商户等功能,可在 ~~~ http://192.168.0.116/monkey/iOS-URHospitalNavigation.git ~~~ 下载示例代码,然后运行查看效果。 ## 导入方式 #### 使用Cocoapods导入 要使用该库,需要依赖基础模块,在Podfile文件中加入: ~~~ platform :ios, '7.0' target 'Test' do pod 'SDWebImage', '~> 3.8.2' 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-URHospitalNavigation', :git => 'http://192.168.0.116/monkey/iOS-URHospitalNavigation.git' end ~~~ 然后在终端执行命令: ~~~ $ pod install ~~~ 或者 ~~~ $ pod update ~~~ #### 手动导入 手动导入还需要手动添加第三方库: ~~~ AFNetworking (3.1.0) ReactiveCocoa (2.5) Masonry (1.0.2) MJRefresh (3.1.12) SDWebImage (3.8.2) 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 头文件中查看。 然后在需要跳转到“健康资讯”的地方直接调用URHosNavigationHomeViewController 即可。 ~~~ self.window.rootViewController = [[UINavigationController alloc] initWithRootViewController:[NSClassFromString(@"URHosNavigationHomeViewController") new]]; ~~~