Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OffcnIMSDKiOS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
opensource
OffcnIMSDKiOS
Commits
6cf4c29f
Commit
6cf4c29f
authored
Aug 28, 2020
by
zhangyunjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
12769036
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
125 additions
and
59 deletions
+125
-59
AppDelegate.m
OffcnIMSDKiOS/AppDelegate.m
+1
-2
Main.storyboard
OffcnIMSDKiOS/Base.lproj/Main.storyboard
+68
-36
OffcnIMSocketManager.h
OffcnIMSDKiOS/ExposedInterface-(外放接口)/OffcnIMSocketManager.h
+7
-4
OffcnIMSocketManager.m
OffcnIMSDKiOS/ExposedInterface-(外放接口)/OffcnIMSocketManager.m
+22
-1
OffcnZYJFMDBHandler.h
...KiOS/Tools-(工具)/OffcnZYJFMDBHandler/OffcnZYJFMDBHandler.h
+4
-1
ViewController.mm
OffcnIMSDKiOS/ViewController.mm
+23
-15
No files found.
OffcnIMSDKiOS/AppDelegate.m
View file @
6cf4c29f
...
@@ -59,8 +59,7 @@
...
@@ -59,8 +59,7 @@
-
(
void
)
applicationDidBecomeActive
:(
UIApplication
*
)
application
{
-
(
void
)
applicationDidBecomeActive
:(
UIApplication
*
)
application
{
if
([
OffcnIMSocketManager
defaultService
].
IMConnectStatus
!=
OffcnIMConnectStatusSuccess
)
{
if
([
OffcnIMSocketManager
defaultService
].
IMConnectStatus
!=
OffcnIMConnectStatusSuccess
)
{
//建立连接
//建立连接
NSString
*
paramStr
=
@"{
\"
server_ip
\"
:
\"
192.168.43.141
\"
,
\"
server_port
\"
:1026,
\"
account_id
\"
:
\"
ce0819db8391f1e7258a71cc9e2c3235
\"
,
\"
app_id
\"
:
\"
offcn_live
\"
,
\"
device_type
\"
:
\"
ios
\"
,
\"
token
\"
:
\"
fadbce3f4929b6bdee0617fee34e32ae
\"
,
\"
session_id
\"
:
\"
123
\"
,
\"
connection_type
\"
:
\"
websocket
\"
,
\"
tls
\"
:
\"
disable
\"
}"
;
// [[OffcnIMSocketManager defaultService] connectIMServerWithAccount_id:@"ce0819db8391f1e7258a71cc9e2c3235" token:@"fadbce3f4929b6bdee0617fee34e32ae"];
[[
OffcnIMSocketManager
defaultService
]
connectIMServerWithParam
:
paramStr
];
}
}
//进入前台,清除推送角标
//进入前台,清除推送角标
...
...
OffcnIMSDKiOS/Base.lproj/Main.storyboard
View file @
6cf4c29f
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"9JE-Lz-Dma"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"9JE-Lz-Dma"
>
<rect
key=
"frame"
x=
"16"
y=
"
270
"
width=
"123"
height=
"30"
/>
<rect
key=
"frame"
x=
"16"
y=
"
347
"
width=
"123"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"用户信息标记已读"
/>
<state
key=
"normal"
title=
"用户信息标记已读"
/>
<connections>
<connections>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1dp-RW-FhV"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"1dp-RW-FhV"
>
<rect
key=
"frame"
x=
"16"
y=
"
235
"
width=
"153"
height=
"30"
/>
<rect
key=
"frame"
x=
"16"
y=
"
312
"
width=
"153"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"获取会话未读消息列表"
/>
<state
key=
"normal"
title=
"获取会话未读消息列表"
/>
<connections>
<connections>
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F7y-mH-mpC"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"F7y-mH-mpC"
>
<rect
key=
"frame"
x=
"16"
y=
"3
05
"
width=
"153"
height=
"30"
/>
<rect
key=
"frame"
x=
"16"
y=
"3
82
"
width=
"153"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"获取用户最近会话记录"
/>
<state
key=
"normal"
title=
"获取用户最近会话记录"
/>
<connections>
<connections>
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7fD-Hf-Afy"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7fD-Hf-Afy"
>
<rect
key=
"frame"
x=
"15"
y=
"
340
"
width=
"153"
height=
"30"
/>
<rect
key=
"frame"
x=
"15"
y=
"
417
"
width=
"153"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"获取会话历史消息列表"
/>
<state
key=
"normal"
title=
"获取会话历史消息列表"
/>
<connections>
<connections>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dRe-f0-gnl"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"dRe-f0-gnl"
>
<rect
key=
"frame"
x=
"15"
y=
"
95
"
width=
"62"
height=
"30"
/>
<rect
key=
"frame"
x=
"15"
y=
"
207
"
width=
"62"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"mC7-ZM-0r1"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"mC7-ZM-0r1"
/>
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Vmx-zP-DRW"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Vmx-zP-DRW"
>
<rect
key=
"frame"
x=
"8
7"
y=
"95
"
width=
"92"
height=
"30"
/>
<rect
key=
"frame"
x=
"8
2"
y=
"207
"
width=
"92"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"发送本地通知"
/>
<state
key=
"normal"
title=
"发送本地通知"
/>
<connections>
<connections>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2eb-Vp-qLt"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2eb-Vp-qLt"
>
<rect
key=
"frame"
x=
"16"
y=
"
130
"
width=
"62"
height=
"30"
/>
<rect
key=
"frame"
x=
"16"
y=
"
242
"
width=
"62"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"断开连接"
/>
<state
key=
"normal"
title=
"断开连接"
/>
<connections>
<connections>
...
@@ -105,15 +105,15 @@
...
@@ -105,15 +105,15 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FOH-XA-D8x"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"FOH-XA-D8x"
>
<rect
key=
"frame"
x=
"1
6"
y=
"165"
width=
"62
"
height=
"30"
/>
<rect
key=
"frame"
x=
"1
79"
y=
"207"
width=
"107
"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"发送消息"
/>
<state
key=
"normal"
title=
"发送
socket
消息"
/>
<connections>
<connections>
<action
selector=
"sendMegAction:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"6ex-WY-diR"
/>
<action
selector=
"sendMegAction:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"6ex-WY-diR"
/>
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TnX-iH-azN"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"TnX-iH-azN"
>
<rect
key=
"frame"
x=
"15"
y=
"2
00
"
width=
"123"
height=
"30"
/>
<rect
key=
"frame"
x=
"15"
y=
"2
77
"
width=
"123"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"WY2-02-a1H"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"WY2-02-a1H"
/>
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"m3k-LM-GSV"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"m3k-LM-GSV"
>
<rect
key=
"frame"
x=
"15"
y=
"
375
"
width=
"62"
height=
"30"
/>
<rect
key=
"frame"
x=
"15"
y=
"
452
"
width=
"62"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"注册用户"
/>
<state
key=
"normal"
title=
"注册用户"
/>
<connections>
<connections>
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uRU-q5-QzB"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"uRU-q5-QzB"
>
<rect
key=
"frame"
x=
"
15"
y=
"410
"
width=
"62"
height=
"30"
/>
<rect
key=
"frame"
x=
"
82"
y=
"452
"
width=
"62"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"注销用户"
/>
<state
key=
"normal"
title=
"注销用户"
/>
<connections>
<connections>
...
@@ -141,7 +141,7 @@
...
@@ -141,7 +141,7 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Cy1-S1-DPz"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Cy1-S1-DPz"
>
<rect
key=
"frame"
x=
"15"
y=
"4
45
"
width=
"132"
height=
"30"
/>
<rect
key=
"frame"
x=
"15"
y=
"4
87
"
width=
"132"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"上传图片/视频/文件"
/>
<state
key=
"normal"
title=
"上传图片/视频/文件"
/>
<connections>
<connections>
...
@@ -149,62 +149,89 @@
...
@@ -149,62 +149,89 @@
</connections>
</connections>
</button>
</button>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bxC-wQ-owS"
>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bxC-wQ-owS"
>
<rect
key=
"frame"
x=
"15
"
y=
"480
"
width=
"62"
height=
"30"
/>
<rect
key=
"frame"
x=
"15
2"
y=
"487
"
width=
"62"
height=
"30"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"backgroundColor"
white=
"0.66666666669999997"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"获取图片"
/>
<state
key=
"normal"
title=
"获取图片"
/>
<connections>
<connections>
<action
selector=
"getImage:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"cbb-Dd-m3G"
/>
<action
selector=
"getImage:"
destination=
"BYZ-38-t0r"
eventType=
"touchUpInside"
id=
"cbb-Dd-m3G"
/>
</connections>
</connections>
</button>
</button>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"01u-sn-4fM"
>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
placeholder=
"请输入消息内容"
textAlignment=
"natural"
minimumFontSize=
"17"
clearButtonMode=
"whileEditing"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"9C8-lY-VAg"
>
<rect
key=
"frame"
x=
"87"
y=
"480"
width=
"50"
height=
"50"
/>
<rect
key=
"frame"
x=
"143"
y=
"273"
width=
"217"
height=
"34"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
placeholder=
"请输入发送人ID"
textAlignment=
"natural"
minimumFontSize=
"17"
clearButtonMode=
"whileEditing"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"W7X-2X-xsv"
>
<rect
key=
"frame"
x=
"15"
y=
"90"
width=
"345"
height=
"34"
/>
<constraints>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"50"
id=
"ImC-C3-Oze"
/>
<constraint
firstAttribute=
"height"
constant=
"34"
id=
"xec-2Q-VZZ"
/>
<constraint
firstAttribute=
"height"
constant=
"50"
id=
"h6U-AZ-Ejp"
/>
</constraints>
</constraints>
</imageView>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
placeholder=
"请输入消息内容"
textAlignment=
"natural"
minimumFontSize=
"17"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"9C8-lY-VAg"
>
<rect
key=
"frame"
x=
"143"
y=
"196"
width=
"217"
height=
"34"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
</textField>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
placeholder=
"请输入接受人ID"
textAlignment=
"natural"
minimumFontSize=
"17"
clearButtonMode=
"whileEditing"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"wpP-7X-EhS"
>
<rect
key=
"frame"
x=
"15"
y=
"168"
width=
"345"
height=
"34"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<textField
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"left"
contentVerticalAlignment=
"center"
borderStyle=
"roundedRect"
placeholder=
"请输入发送人token"
textAlignment=
"natural"
minimumFontSize=
"17"
clearButtonMode=
"whileEditing"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"8TM-yv-Un7"
>
<rect
key=
"frame"
x=
"15"
y=
"129"
width=
"345"
height=
"34"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"14"
/>
<textInputTraits
key=
"textInputTraits"
/>
</textField>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"01u-sn-4fM"
>
<rect
key=
"frame"
x=
"219"
y=
"487"
width=
"60"
height=
"60"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"60"
id=
"ER0-mY-ms3"
/>
<constraint
firstAttribute=
"width"
constant=
"60"
id=
"vhI-Da-dhK"
/>
</constraints>
</imageView>
</subviews>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraints>
<constraint
firstItem=
"uRU-q5-QzB"
firstAttribute=
"height"
secondItem=
"m3k-LM-GSV"
secondAttribute=
"height"
id=
"0iG-ih-UIc"
/>
<constraint
firstItem=
"7fD-Hf-Afy"
firstAttribute=
"top"
secondItem=
"F7y-mH-mpC"
secondAttribute=
"bottom"
constant=
"5"
id=
"3iZ-Fk-2i8"
/>
<constraint
firstItem=
"7fD-Hf-Afy"
firstAttribute=
"top"
secondItem=
"F7y-mH-mpC"
secondAttribute=
"bottom"
constant=
"5"
id=
"3iZ-Fk-2i8"
/>
<constraint
firstItem=
"
uRU-q5-QzB"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
id=
"4wn-eR-XoF
"
/>
<constraint
firstItem=
"
W7X-2X-xsv"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
constant=
"15"
id=
"4mN-Ol-K6z
"
/>
<constraint
firstItem=
"F7y-mH-mpC"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"leading"
constant=
"1"
id=
"6b7-ni-Ag1"
/>
<constraint
firstItem=
"F7y-mH-mpC"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"leading"
constant=
"1"
id=
"6b7-ni-Ag1"
/>
<constraint
firstItem=
"FOH-XA-D8x"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
constant=
"1"
id=
"7Vb-59-bMM"
/>
<constraint
firstItem=
"bxC-wQ-owS"
firstAttribute=
"top"
secondItem=
"Cy1-S1-DPz"
secondAttribute=
"top"
id=
"6i3-87-Iqw"
/>
<constraint
firstItem=
"wpP-7X-EhS"
firstAttribute=
"leading"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"leading"
id=
"7qR-05-4WU"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"so4-rI-aRi"
secondAttribute=
"trailing"
id=
"83W-xz-1xP"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"so4-rI-aRi"
secondAttribute=
"trailing"
id=
"83W-xz-1xP"
/>
<constraint
firstItem=
"wpP-7X-EhS"
firstAttribute=
"top"
secondItem=
"8TM-yv-Un7"
secondAttribute=
"bottom"
constant=
"5"
id=
"8Ny-K1-4n7"
/>
<constraint
firstItem=
"Cy1-S1-DPz"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"8qa-si-8ig"
/>
<constraint
firstItem=
"Cy1-S1-DPz"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"8qa-si-8ig"
/>
<constraint
firstItem=
"m3k-LM-GSV"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
id=
"97H-yt-Mwa"
/>
<constraint
firstItem=
"m3k-LM-GSV"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
id=
"97H-yt-Mwa"
/>
<constraint
firstItem=
"dRe-f0-gnl"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
constant=
"15"
id=
"A4C-6b-WCr"
/>
<constraint
firstItem=
"dRe-f0-gnl"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
constant=
"15"
id=
"A4C-6b-WCr"
/>
<constraint
firstItem=
"bxC-wQ-owS"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
id=
"ASK-51-Usk"
/>
<constraint
firstItem=
"so4-rI-aRi"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
id=
"Acv-YJ-6xY"
/>
<constraint
firstItem=
"so4-rI-aRi"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
id=
"Acv-YJ-6xY"
/>
<constraint
firstItem=
"dRe-f0-gnl"
firstAttribute=
"top"
secondItem=
"
so4-rI-aRi"
secondAttribute=
"bottom"
constant=
"10
"
id=
"AvN-lQ-0c4"
/>
<constraint
firstItem=
"dRe-f0-gnl"
firstAttribute=
"top"
secondItem=
"
wpP-7X-EhS"
secondAttribute=
"bottom"
constant=
"5
"
id=
"AvN-lQ-0c4"
/>
<constraint
firstItem=
"
Cy1-S1-DPz"
firstAttribute=
"top"
secondItem=
"uRU-q5-QzB"
secondAttribute=
"bottom"
constant=
"5"
id=
"CFi-VG-VAh
"
/>
<constraint
firstItem=
"
wpP-7X-EhS"
firstAttribute=
"height"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"height"
id=
"DSG-sD-qXE
"
/>
<constraint
firstItem=
"
01u-sn-4fM"
firstAttribute=
"top"
secondItem=
"bxC-wQ-owS"
secondAttribute=
"top"
id=
"Evh-9r-mjB
"
/>
<constraint
firstItem=
"
8TM-yv-Un7"
firstAttribute=
"height"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"height"
id=
"FsK-4W-A58
"
/>
<constraint
firstItem=
"bxC-wQ-owS"
firstAttribute=
"
top"
secondItem=
"Cy1-S1-DPz"
secondAttribute=
"bottom"
constant=
"5"
id=
"HV2-Wc-8Yi
"
/>
<constraint
firstItem=
"bxC-wQ-owS"
firstAttribute=
"
height"
secondItem=
"Cy1-S1-DPz"
secondAttribute=
"height"
id=
"HRS-aT-dpu
"
/>
<constraint
firstItem=
"F7y-mH-mpC"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"HV9-jc-VLg"
/>
<constraint
firstItem=
"F7y-mH-mpC"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"HV9-jc-VLg"
/>
<constraint
firstItem=
"F7y-mH-mpC"
firstAttribute=
"top"
secondItem=
"9JE-Lz-Dma"
secondAttribute=
"bottom"
constant=
"5"
id=
"HdJ-KZ-Mo0"
/>
<constraint
firstItem=
"F7y-mH-mpC"
firstAttribute=
"top"
secondItem=
"9JE-Lz-Dma"
secondAttribute=
"bottom"
constant=
"5"
id=
"HdJ-KZ-Mo0"
/>
<constraint
firstItem=
"FOH-XA-D8x"
firstAttribute=
"leading"
secondItem=
"Vmx-zP-DRW"
secondAttribute=
"trailing"
constant=
"5"
id=
"IwN-ov-FmL"
/>
<constraint
firstItem=
"so4-rI-aRi"
firstAttribute=
"top"
secondItem=
"HDM-va-7kG"
secondAttribute=
"bottom"
constant=
"5"
id=
"JGR-v7-Dr6"
/>
<constraint
firstItem=
"so4-rI-aRi"
firstAttribute=
"top"
secondItem=
"HDM-va-7kG"
secondAttribute=
"bottom"
constant=
"5"
id=
"JGR-v7-Dr6"
/>
<constraint
firstItem=
"
uRU-q5-QzB"
firstAttribute=
"top"
secondItem=
"m3k-LM-GSV"
secondAttribute=
"bottom"
constant=
"5"
id=
"JUk-SN-mJi
"
/>
<constraint
firstItem=
"
01u-sn-4fM"
firstAttribute=
"leading"
secondItem=
"bxC-wQ-owS"
secondAttribute=
"trailing"
constant=
"5"
id=
"Klm-Tu-0BT
"
/>
<constraint
firstItem=
"HDM-va-7kG"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
id=
"LVQ-dP-gyt"
/>
<constraint
firstItem=
"HDM-va-7kG"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
id=
"LVQ-dP-gyt"
/>
<constraint
firstItem=
"m3k-LM-GSV"
firstAttribute=
"top"
secondItem=
"7fD-Hf-Afy"
secondAttribute=
"bottom"
constant=
"5"
id=
"Lxq-EJ-ByY"
/>
<constraint
firstItem=
"m3k-LM-GSV"
firstAttribute=
"top"
secondItem=
"7fD-Hf-Afy"
secondAttribute=
"bottom"
constant=
"5"
id=
"Lxq-EJ-ByY"
/>
<constraint
firstItem=
"2eb-Vp-qLt"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"M7d-CM-zWv"
/>
<constraint
firstItem=
"2eb-Vp-qLt"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"M7d-CM-zWv"
/>
<constraint
firstItem=
"uRU-q5-QzB"
firstAttribute=
"top"
secondItem=
"m3k-LM-GSV"
secondAttribute=
"top"
id=
"MSV-Gc-Og9"
/>
<constraint
firstItem=
"01u-sn-4fM"
firstAttribute=
"top"
secondItem=
"Cy1-S1-DPz"
secondAttribute=
"top"
id=
"Nb3-Oc-foo"
/>
<constraint
firstItem=
"2eb-Vp-qLt"
firstAttribute=
"top"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"bottom"
constant=
"5"
id=
"QLW-Tp-TY4"
/>
<constraint
firstItem=
"2eb-Vp-qLt"
firstAttribute=
"top"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"bottom"
constant=
"5"
id=
"QLW-Tp-TY4"
/>
<constraint
firstItem=
"bxC-wQ-owS"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"ROb-ls-OKO"
/>
<constraint
firstItem=
"bxC-wQ-owS"
firstAttribute=
"leading"
secondItem=
"Cy1-S1-DPz"
secondAttribute=
"trailing"
constant=
"5"
id=
"Rdx-7e-eh7"
/>
<constraint
firstItem=
"8TM-yv-Un7"
firstAttribute=
"top"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"bottom"
constant=
"5"
id=
"TCv-SS-inh"
/>
<constraint
firstItem=
"FOH-XA-D8x"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"TGa-pW-zYt"
/>
<constraint
firstItem=
"9C8-lY-VAg"
firstAttribute=
"bottom"
secondItem=
"TnX-iH-azN"
secondAttribute=
"bottom"
id=
"UMk-Jo-juB"
/>
<constraint
firstItem=
"9C8-lY-VAg"
firstAttribute=
"bottom"
secondItem=
"TnX-iH-azN"
secondAttribute=
"bottom"
id=
"UMk-Jo-juB"
/>
<constraint
firstItem=
"TnX-iH-azN"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
constant=
"15"
id=
"UOK-BA-rIV"
/>
<constraint
firstItem=
"TnX-iH-azN"
firstAttribute=
"leading"
secondItem=
"8bC-Xf-vdC"
secondAttribute=
"leading"
constant=
"15"
id=
"UOK-BA-rIV"
/>
<constraint
firstItem=
"9C8-lY-VAg"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"trailing"
constant=
"5"
id=
"XgB-GO-lOM"
/>
<constraint
firstItem=
"9C8-lY-VAg"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"trailing"
constant=
"5"
id=
"XgB-GO-lOM"
/>
<constraint
firstItem=
"Cy1-S1-DPz"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
id=
"Y9c-yU-8ZX"
/>
<constraint
firstItem=
"Cy1-S1-DPz"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
id=
"Y9c-yU-8ZX"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"HDM-va-7kG"
secondAttribute=
"trailing"
id=
"YX6-FQ-G4J"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"HDM-va-7kG"
secondAttribute=
"trailing"
id=
"YX6-FQ-G4J"
/>
<constraint
firstItem=
"FOH-XA-D8x"
firstAttribute=
"top"
secondItem=
"2eb-Vp-qLt"
secondAttribute=
"bottom"
constant=
"5"
id=
"ZKE-q9-PH4"
/>
<constraint
firstItem=
"8TM-yv-Un7"
firstAttribute=
"trailing"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"trailing"
id=
"ZsE-8c-rUX"
/>
<constraint
firstItem=
"FOH-XA-D8x"
firstAttribute=
"top"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"top"
id=
"dJi-hK-bk0"
/>
<constraint
firstItem=
"W7X-2X-xsv"
firstAttribute=
"top"
secondItem=
"so4-rI-aRi"
secondAttribute=
"bottom"
constant=
"5"
id=
"dox-is-kXR"
/>
<constraint
firstItem=
"2eb-Vp-qLt"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
constant=
"1"
id=
"e0h-4k-Ucp"
/>
<constraint
firstItem=
"2eb-Vp-qLt"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"leading"
constant=
"1"
id=
"e0h-4k-Ucp"
/>
<constraint
firstItem=
"
TnX-iH-azN"
firstAttribute=
"top"
secondItem=
"FOH-XA-D8x"
secondAttribute=
"bottom"
constant=
"5"
id=
"ecq-kq-ylx
"
/>
<constraint
firstItem=
"
8TM-yv-Un7"
firstAttribute=
"leading"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"leading"
id=
"eFf-tb-Hek
"
/>
<constraint
firstItem=
"9JE-Lz-Dma"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"fRe-gX-tKo"
/>
<constraint
firstItem=
"9JE-Lz-Dma"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"fRe-gX-tKo"
/>
<constraint
firstItem=
"uRU-q5-QzB"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"gfY-7F-lgC"
/>
<constraint
firstItem=
"1dp-RW-FhV"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"leading"
constant=
"1"
id=
"gpR-z2-ljd"
/>
<constraint
firstItem=
"1dp-RW-FhV"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"leading"
constant=
"1"
id=
"gpR-z2-ljd"
/>
<constraint
firstItem=
"uRU-q5-QzB"
firstAttribute=
"leading"
secondItem=
"m3k-LM-GSV"
secondAttribute=
"trailing"
constant=
"5"
id=
"hRq-kb-fCs"
/>
<constraint
firstItem=
"7fD-Hf-Afy"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"j3W-5R-k7D"
/>
<constraint
firstItem=
"7fD-Hf-Afy"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"j3W-5R-k7D"
/>
<constraint
firstItem=
"9C8-lY-VAg"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
multiplier=
"1.13333"
id=
"k7J-W8-ljE"
/>
<constraint
firstItem=
"9C8-lY-VAg"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
multiplier=
"1.13333"
id=
"k7J-W8-ljE"
/>
<constraint
firstItem=
"9JE-Lz-Dma"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"leading"
constant=
"1"
id=
"kqV-nZ-dh4"
/>
<constraint
firstItem=
"9JE-Lz-Dma"
firstAttribute=
"leading"
secondItem=
"TnX-iH-azN"
secondAttribute=
"leading"
constant=
"1"
id=
"kqV-nZ-dh4"
/>
...
@@ -214,17 +241,22 @@
...
@@ -214,17 +241,22 @@
<constraint
firstItem=
"1dp-RW-FhV"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"pCJ-es-iPl"
/>
<constraint
firstItem=
"1dp-RW-FhV"
firstAttribute=
"height"
secondItem=
"TnX-iH-azN"
secondAttribute=
"height"
id=
"pCJ-es-iPl"
/>
<constraint
firstItem=
"1dp-RW-FhV"
firstAttribute=
"top"
secondItem=
"TnX-iH-azN"
secondAttribute=
"bottom"
constant=
"5"
id=
"ta0-ZL-iPP"
/>
<constraint
firstItem=
"1dp-RW-FhV"
firstAttribute=
"top"
secondItem=
"TnX-iH-azN"
secondAttribute=
"bottom"
constant=
"5"
id=
"ta0-ZL-iPP"
/>
<constraint
firstItem=
"Vmx-zP-DRW"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"uLF-IL-l61"
/>
<constraint
firstItem=
"Vmx-zP-DRW"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"uLF-IL-l61"
/>
<constraint
firstItem=
"Vmx-zP-DRW"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"trailing"
constant=
"10"
id=
"vfp-Yh-YD6"
/>
<constraint
firstItem=
"Cy1-S1-DPz"
firstAttribute=
"top"
secondItem=
"m3k-LM-GSV"
secondAttribute=
"bottom"
constant=
"5"
id=
"vHt-ft-Hyf"
/>
<constraint
firstItem=
"Vmx-zP-DRW"
firstAttribute=
"leading"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"trailing"
constant=
"5"
id=
"vfp-Yh-YD6"
/>
<constraint
firstItem=
"TnX-iH-azN"
firstAttribute=
"top"
secondItem=
"2eb-Vp-qLt"
secondAttribute=
"bottom"
constant=
"5"
id=
"wpQ-ws-7sM"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"9C8-lY-VAg"
secondAttribute=
"trailing"
constant=
"15"
id=
"xJl-HV-EOH"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"9C8-lY-VAg"
secondAttribute=
"trailing"
constant=
"15"
id=
"xJl-HV-EOH"
/>
<constraint
firstItem=
"9JE-Lz-Dma"
firstAttribute=
"top"
secondItem=
"1dp-RW-FhV"
secondAttribute=
"bottom"
constant=
"5"
id=
"xMf-AL-l1H"
/>
<constraint
firstItem=
"9JE-Lz-Dma"
firstAttribute=
"top"
secondItem=
"1dp-RW-FhV"
secondAttribute=
"bottom"
constant=
"5"
id=
"xMf-AL-l1H"
/>
<constraint
firstItem=
"
01u-sn-4fM"
firstAttribute=
"leading"
secondItem=
"bxC-wQ-owS"
secondAttribute=
"trailing"
constant=
"10"
id=
"xNi-Lk-dWo
"
/>
<constraint
firstItem=
"
wpP-7X-EhS"
firstAttribute=
"trailing"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"trailing"
id=
"xWp-bD-x5C
"
/>
<constraint
first
Item=
"FOH-XA-D8x"
firstAttribute=
"height"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"height"
id=
"yrM-M1-11o
"
/>
<constraint
first
Attribute=
"trailing"
secondItem=
"W7X-2X-xsv"
secondAttribute=
"trailing"
constant=
"15"
id=
"xnq-qQ-lUK
"
/>
<constraint
firstItem=
"Vmx-zP-DRW"
firstAttribute=
"top"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"top"
id=
"zxs-bV-awe"
/>
<constraint
firstItem=
"Vmx-zP-DRW"
firstAttribute=
"top"
secondItem=
"dRe-f0-gnl"
secondAttribute=
"top"
id=
"zxs-bV-awe"
/>
</constraints>
</constraints>
</view>
</view>
<connections>
<connections>
<outlet
property=
"changeEnvironmentBtn"
destination=
"so4-rI-aRi"
id=
"ong-vG-zJ6"
/>
<outlet
property=
"changeEnvironmentBtn"
destination=
"so4-rI-aRi"
id=
"ong-vG-zJ6"
/>
<outlet
property=
"megTextField"
destination=
"9C8-lY-VAg"
id=
"NdF-KZ-ejC"
/>
<outlet
property=
"megTextField"
destination=
"9C8-lY-VAg"
id=
"NdF-KZ-ejC"
/>
<outlet
property=
"recvIDTextField"
destination=
"wpP-7X-EhS"
id=
"qJr-jJ-e4u"
/>
<outlet
property=
"sendIDTextField"
destination=
"W7X-2X-xsv"
id=
"e1Q-4T-l0b"
/>
<outlet
property=
"sendTokenTextField"
destination=
"8TM-yv-Un7"
id=
"HYr-kt-sOj"
/>
<outlet
property=
"showImage"
destination=
"01u-sn-4fM"
id=
"Tl0-7d-FXH"
/>
<outlet
property=
"showImage"
destination=
"01u-sn-4fM"
id=
"Tl0-7d-FXH"
/>
</connections>
</connections>
</viewController>
</viewController>
...
...
OffcnIMSDKiOS/ExposedInterface-(外放接口)/OffcnIMSocketManager.h
View file @
6cf4c29f
//
//
...
@@ -31,11 +31,14 @@ typedef void(^OffcnIMReceiveConnectStatus)(OffcnIMConnectStatus status,NSString
...
@@ -31,11 +31,14 @@ typedef void(^OffcnIMReceiveConnectStatus)(OffcnIMConnectStatus status,NSString
@property
(
nonatomic
,
copy
)
OffcnIMConnectReceiveMessage
connectReceiveMessage
;
@property
(
nonatomic
,
copy
)
OffcnIMConnectReceiveMessage
connectReceiveMessage
;
@property
(
nonatomic
,
copy
)
OffcnIMReceiveConnectStatus
connectStatus
;
@property
(
nonatomic
,
copy
)
OffcnIMReceiveConnectStatus
connectStatus
;
//单例
+
(
OffcnIMSocketManager
*
)
defaultService
;
+
(
OffcnIMSocketManager
*
)
defaultService
;
//建立连接
/// 建立连接
-
(
void
)
connectIMServerWithParam
:(
NSString
*
)
param
;
/// @param account_id 用户ID
/// @param token 用户token
-
(
void
)
connectIMServerWithAccount_id
:(
NSString
*
)
account_id
token
:(
NSString
*
)
token
;
//断开连接
//断开连接
-
(
void
)
disConnectIMServer
;
-
(
void
)
disConnectIMServer
;
@end
@end
...
...
OffcnIMSDKiOS/ExposedInterface-(外放接口)/OffcnIMSocketManager.m
View file @
6cf4c29f
//
//
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
#import <oimcore/oimcoreAdapter.h>
#import <oimcore/oimcoreAdapter.h>
#import "ZYJMJExtension.h"
#import "ZYJMJExtension.h"
#import "DataSafe.h"
#import "DataSafe.h"
#import "SDGeneralTool.h"
@interface
OffcnIMSocketManager
()
<
OIMCoreDelegate
>
@interface
OffcnIMSocketManager
()
<
OIMCoreDelegate
>
...
@@ -45,6 +46,26 @@ static OffcnIMSocketManager *socketManager;
...
@@ -45,6 +46,26 @@ static OffcnIMSocketManager *socketManager;
}
}
//建立连接
//建立连接
-
(
void
)
connectIMServerWithAccount_id
:
(
NSString
*
)
account_id
token
:
(
NSString
*
)
token
{
// connection_type = ["kcp", "websocket"]
// tls = ["disable", "enable"]
NSMutableDictionary
*
dic
=
[
NSMutableDictionary
dictionary
];
[
dic
setObjectOnSafe
:
@"192.168.43.141"
forKey
:
@"server_ip"
];
[
dic
setObjectOnSafe
:[
NSNumber
numberWithInteger
:
1026
]
forKey
:
@"server_port"
];
[
dic
setObjectOnSafe
:
account_id
forKey
:
@"account_id"
];
[
dic
setObjectOnSafe
:
@"offcn_live"
forKey
:
@"app_id"
];
[
dic
setObjectOnSafe
:
@"ios"
forKey
:
@"device_type"
];
[
dic
setObjectOnSafe
:
token
forKey
:
@"token"
];
NSString
*
session_id
=
[
SDGeneralTool
getNowSSSTimeTimestamp
];
[
dic
setObjectOnSafe
:
session_id
forKey
:
@"session_id"
];
[
dic
setObjectOnSafe
:
@"websocket"
forKey
:
@"connection_type"
];
[
dic
setObjectOnSafe
:
@"disable"
forKey
:
@"tls"
];
[
self
connectIMServerWithParam
:[
dic
mj_ZYJJSONString
]];
}
-
(
void
)
connectIMServerWithParam
:
(
NSString
*
)
param
{
-
(
void
)
connectIMServerWithParam
:
(
NSString
*
)
param
{
[
self
.
adapter
ConnectImServerWithParam
:
param
];
[
self
.
adapter
ConnectImServerWithParam
:
param
];
}
}
...
...
OffcnIMSDKiOS/Tools-(工具)/OffcnZYJFMDBHandler/OffcnZYJFMDBHandler.h
View file @
6cf4c29f
//
//
...
@@ -22,5 +22,8 @@ typedef void(^ReturnData)(NSMutableArray *modelArr);
...
@@ -22,5 +22,8 @@ typedef void(^ReturnData)(NSMutableArray *modelArr);
+
(
OffcnZYJFMDBHandler
*
)
sharedInstance
;
+
(
OffcnZYJFMDBHandler
*
)
sharedInstance
;
@end
@end
OffcnIMSDKiOS/ViewController.mm
View file @
6cf4c29f
...
@@ -15,6 +15,10 @@
...
@@ -15,6 +15,10 @@
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
changeEnvironmentBtn
;
@property
(
weak
,
nonatomic
)
IBOutlet
UIButton
*
changeEnvironmentBtn
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
megTextField
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
megTextField
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
sendIDTextField
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
sendTokenTextField
;
@property
(
weak
,
nonatomic
)
IBOutlet
UITextField
*
recvIDTextField
;
@property
(
strong
,
nonatomic
)
NSString
*
fromId
;
@property
(
strong
,
nonatomic
)
NSString
*
fromId
;
@property
(
strong
,
nonatomic
)
NSString
*
toId
;
@property
(
strong
,
nonatomic
)
NSString
*
toId
;
...
@@ -25,6 +29,21 @@
...
@@ -25,6 +29,21 @@
@implementation
ViewController
@implementation
ViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
@"demo"
;
self
.
changeEnvironmentBtn
.
selected
=
[
OffcnIMSDKiOS
defaultService
].
isTest
;
self
.
sendIDTextField
.
text
=
@"jfdfjei0343"
;
self
.
recvIDTextField
.
text
=
@"ce0819db8391f1e7258a71cc9e2c3235"
;
self
.
sendTokenTextField
.
text
=
@"fadbce3f4929b6bdee0617fee34e32ae"
;
self
.
fromId
=
self
.
sendIDTextField
.
text
;
self
.
toId
=
self
.
recvIDTextField
.
text
;
}
#pragma mark - 切换环境
#pragma mark - 切换环境
-
(
IBAction
)
clickChangeEnvironmentBtnAction
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
clickChangeEnvironmentBtnAction
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
isSelected
;
sender
.
selected
=
!
sender
.
isSelected
;
...
@@ -41,10 +60,7 @@
...
@@ -41,10 +60,7 @@
}
}
-
(
IBAction
)
connectAction
:
(
UIButton
*
)
sender
{
-
(
IBAction
)
connectAction
:
(
UIButton
*
)
sender
{
//建立连接
//建立连接
// connection_type = ["kcp", "websocket"]
[[
OffcnIMSocketManager
defaultService
]
connectIMServerWithAccount_id
:
self
.
toId
token
:
self
.
sendTokenTextField
.
text
];
// tls = ["disable", "enable"]
NSString
*
paramStr
=
@"{
\"
server_ip
\"
:
\"
192.168.43.141
\"
,
\"
server_port
\"
:1026,
\"
account_id
\"
:
\"
ce0819db8391f1e7258a71cc9e2c3235
\"
,
\"
app_id
\"
:
\"
offcn_live
\"
,
\"
device_type
\"
:
\"
ios
\"
,
\"
token
\"
:
\"
fadbce3f4929b6bdee0617fee34e32ae
\"
,
\"
session_id
\"
:
\"
123
\"
,
\"
connection_type
\"
:
\"
websocket
\"
,
\"
tls
\"
:
\"
disable
\"
}"
;
[[
OffcnIMSocketManager
defaultService
]
connectIMServerWithParam
:
paramStr
];
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
[
OffcnIMSocketManager
defaultService
].
connectReceiveMessage
=
^
(
OffcnIMModel
*
IMModel
)
{
[
OffcnIMSocketManager
defaultService
].
connectReceiveMessage
=
^
(
OffcnIMModel
*
IMModel
)
{
...
@@ -120,6 +136,7 @@
...
@@ -120,6 +136,7 @@
}
}
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
}
}
OffcnZYJTestDataStorageView
*
storageView
=
[[
OffcnZYJTestDataStorageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
self
.
view
.
bounds
.
size
.
width
,
self
.
view
.
bounds
.
size
.
height
-
20
)];
OffcnZYJTestDataStorageView
*
storageView
=
[[
OffcnZYJTestDataStorageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
self
.
view
.
bounds
.
size
.
width
,
self
.
view
.
bounds
.
size
.
height
-
20
)];
...
@@ -158,6 +175,7 @@
...
@@ -158,6 +175,7 @@
}
}
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
}
}
OffcnZYJTestDataStorageView
*
storageView
=
[[
OffcnZYJTestDataStorageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
self
.
view
.
bounds
.
size
.
width
,
self
.
view
.
bounds
.
size
.
height
-
20
)];
OffcnZYJTestDataStorageView
*
storageView
=
[[
OffcnZYJTestDataStorageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
self
.
view
.
bounds
.
size
.
width
,
self
.
view
.
bounds
.
size
.
height
-
20
)];
...
@@ -184,6 +202,7 @@
...
@@ -184,6 +202,7 @@
}
}
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
msg
=
[
msg
stringByAppendingString
:
@"
\r\n
"
];
}
}
OffcnZYJTestDataStorageView
*
storageView
=
[[
OffcnZYJTestDataStorageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
self
.
view
.
bounds
.
size
.
width
,
self
.
view
.
bounds
.
size
.
height
-
20
)];
OffcnZYJTestDataStorageView
*
storageView
=
[[
OffcnZYJTestDataStorageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
20
,
self
.
view
.
bounds
.
size
.
width
,
self
.
view
.
bounds
.
size
.
height
-
20
)];
...
@@ -236,17 +255,6 @@
...
@@ -236,17 +255,6 @@
}];
}];
}
}
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
title
=
@"demo"
;
self
.
changeEnvironmentBtn
.
selected
=
[
OffcnIMSDKiOS
defaultService
].
isTest
;
self
.
fromId
=
@"jfdfjei0343"
;
self
.
toId
=
@"ce0819db8391f1e7258a71cc9e2c3235"
;
}
#pragma mark UIImagePickerControllerDelegate
#pragma mark UIImagePickerControllerDelegate
-
(
void
)
imagePickerController
:
(
UIImagePickerController
*
)
picker
didFinishPickingMediaWithInfo
:
(
NSDictionary
<
UIImagePickerControllerInfoKey
,
id
>
*
)
info
{
-
(
void
)
imagePickerController
:
(
UIImagePickerController
*
)
picker
didFinishPickingMediaWithInfo
:
(
NSDictionary
<
UIImagePickerControllerInfoKey
,
id
>
*
)
info
{
self
.
pickImage
=
info
[
UIImagePickerControllerOriginalImage
];
self
.
pickImage
=
info
[
UIImagePickerControllerOriginalImage
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment