iOS 和 H5交互的

时间:2020-12-31 10:54:37
【文件属性】:
文件名称:iOS 和 H5交互的
文件大小:60KB
文件格式:ZIP
更新时间:2020-12-31 10:54:37
iOS,H5,交互 介绍两种iOS与H5交互的方式 一:在shouldStartLoadWithRequest 代理方法中拦截url,通过之前定义好的scheme协议来判断 H5端需要做什么。 二:在webViewDidFinishLoad 代理方法中将定义好方法的对象传给H5端,H5直接通过此对象进行调用。
【文件预览】:
iOSH5Interaction
----iOSH5Interaction()
--------Assets.xcassets()
--------main.m(337B)
--------AppDelegate.h(280B)
--------AppDelegate.m(2KB)
--------InteractionB()
--------Base.lproj()
--------.DS_Store(6KB)
--------ViewController.h(218B)
--------Info.plist(1KB)
--------ViewController.m(853B)
--------InteractionA()
----.DS_Store(6KB)
----iOSH5InteractionUITests()
--------Info.plist(680B)
--------iOSH5InteractionUITests.m(1KB)
----iOSH5InteractionTests()
--------iOSH5InteractionTests.m(929B)
--------Info.plist(680B)
----iOSH5Interaction.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(24KB)
--------xcuserdata()
README.md

网友评论