Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-fluwx
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
clx-fluwx
Commits
b599ee27
提交
b599ee27
authored
9月 28, 2018
作者:
JarvanMo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update swift doc'
上级
614e3efd
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
45 行增加
和
3 行删除
+45
-3
USING_SWIFT.md
doc/USING_SWIFT.md
+21
-1
USING_SWIFT_CN.md
doc/USING_SWIFT_CN.md
+21
-1
Info.plist
example/ios/Runner/Info.plist
+3
-1
没有找到文件。
doc/USING_SWIFT.md
浏览文件 @
b599ee27
...
@@ -15,9 +15,10 @@ We have to make the headers in `WeChatOpenSDK` public in order to support swift:
...
@@ -15,9 +15,10 @@ We have to make the headers in `WeChatOpenSDK` public in order to support swift:
## Response
## Response
override the following functions in
`AppDelegate.swift`
:
override the following functions in
`AppDelegate.swift`
:
```
swift
```
swift
//swift4.1
import
fluwx
import
fluwx
override
func
application
(
_
application
:
UIApplication
,
open
url
:
URL
,
sourceApplication
:
String
?,
annotation
:
Any
)
->
Bool
{
override
func
application
(
_
application
:
UIApplication
,
open
url
:
URL
,
sourceApplication
:
String
?,
annotation
:
Any
)
->
Bool
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
}
...
@@ -27,4 +28,23 @@ override the following functions in `AppDelegate.swift`:
...
@@ -27,4 +28,23 @@ override the following functions in `AppDelegate.swift`:
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
}
```
```
swift
//swift4.2
import
fluwx
// Converted to Swift 4 by Swiftify v4.1.6841 - https://objectivec2swift.com/
override
func
application
(
_
application
:
UIApplication
,
open
url
:
URL
,
sourceApplication
:
String
?,
annotation
:
Any
)
->
Bool
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
// NOTE: 9.0以后使用新API接口
override
func
application
(
_
app
:
UIApplication
,
open
url
:
URL
,
options
:
[
UIApplicationOpenURLOptionsKey
:
Any
]
=
[:])
->
Bool
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
```
```
doc/USING_SWIFT_CN.md
浏览文件 @
b599ee27
...
@@ -15,9 +15,10 @@
...
@@ -15,9 +15,10 @@
## 回调监听
## 回调监听
在你的
`AppDelegate.swift`
文件中重写以下方法:
在你的
`AppDelegate.swift`
文件中重写以下方法:
```
swift
```
swift
//swift4.1
import
fluwx
import
fluwx
override
func
application
(
_
application
:
UIApplication
,
open
url
:
URL
,
sourceApplication
:
String
?,
annotation
:
Any
)
->
Bool
{
override
func
application
(
_
application
:
UIApplication
,
open
url
:
URL
,
sourceApplication
:
String
?,
annotation
:
Any
)
->
Bool
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
}
...
@@ -27,4 +28,23 @@
...
@@ -27,4 +28,23 @@
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
}
```
```
swift
//swift4.2
import
fluwx
// Converted to Swift 4 by Swiftify v4.1.6841 - https://objectivec2swift.com/
override
func
application
(
_
application
:
UIApplication
,
open
url
:
URL
,
sourceApplication
:
String
?,
annotation
:
Any
)
->
Bool
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
// NOTE: 9.0以后使用新API接口
override
func
application
(
_
app
:
UIApplication
,
open
url
:
URL
,
options
:
[
UIApplicationOpenURLOptionsKey
:
Any
]
=
[:])
->
Bool
{
return
WXApi
.
handleOpen
(
url
,
delegate
:
FluwxResponseHandler
.
defaultManager
())
}
```
```
example/ios/Runner/Info.plist
浏览文件 @
b599ee27
...
@@ -28,7 +28,9 @@
...
@@ -28,7 +28,9 @@
<
k
e
y
>
CFBundleURLName
<
/k
e
y
>
<
k
e
y
>
CFBundleURLName
<
/k
e
y
>
<
string
>
weixin
<
/string
>
<
string
>
weixin
<
/string
>
<
k
e
y
>
CFBundleURLSchemes
<
/k
e
y
>
<
k
e
y
>
CFBundleURLSchemes
<
/k
e
y
>
<
a
rr
a
y/
>
<
a
rr
a
y
>
<
string
>
wxd930ea5d5a258f4f
<
/string
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论