Toggle navigation
Toggle navigation
This project
Loading...
Sign in
hh_public
/
hhsdk.ios.demo.trtc
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chengyanfang
2020-11-20 11:44:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f63e7b39e51e930d52a4bc7517a4e2b1ae3c2af9
f63e7b39
1 parent
451c738a
add config
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
6 deletions
HHMSDKDemo/LoginVC.swift
HHMSDKDemo/Res/Base.lproj/Main.storyboard
HHMSDKDemo/SettingVC.swift
Podfile
HHMSDKDemo/LoginVC.swift
View file @
f63e7b3
...
...
@@ -95,7 +95,15 @@ class LoginVC: UIViewController {
@IBAction
func
skipToHome
(
_
sender
:
UIButton
)
{
HHMSDK
.
default
.
skipChatHome
()
if
HHSDKOptions
.
default
.
mMessageOptions
.
isByPresent
{
if
let
vc
=
HHMSDK
.
default
.
chatHomeVC
()
{
let
nav
=
UINavigationController
(
rootViewController
:
vc
)
nav
.
modalPresentationStyle
=
.
fullScreen
self
.
present
(
nav
,
animated
:
true
,
completion
:
nil
)
}
}
else
{
HHMSDK
.
default
.
skipChatHome
()
}
}
override
func
touchesBegan
(
_
touches
:
Set
<
UITouch
>
,
with
event
:
UIEvent
?)
{
...
...
HHMSDKDemo/Res/Base.lproj/Main.storyboard
View file @
f63e7b3
...
...
@@ -11,7 +11,7 @@
<!--LoginVC-->
<scene
sceneID=
"ZuK-Ew-nhs"
>
<objects>
<viewController
id=
"H9G-Cx-5aF"
customClass=
"LoginVC"
customModule=
"HH
TMedicSDK
"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
id=
"H9G-Cx-5aF"
customClass=
"LoginVC"
customModule=
"HH
MSDKDemo
"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<layoutGuides>
<viewControllerLayoutGuide
type=
"top"
id=
"pvb-0q-YKi"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"N1D-F5-d1D"
/>
...
...
@@ -29,7 +29,7 @@
<color
key=
"textColor"
red=
"0.39215686274509803"
green=
"0.39215686274509803"
blue=
"0.39215686274509803"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
<textView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
text=
"
EC313F3198AF4F1972484E49E718D4DED7B294C6D4F4B9CB52C7CC1AF9E5140B
"
textAlignment=
"natural"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tXq-br-C4i"
>
<textView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
text=
"
FA0A5E533F3E828AF2FDBFB3220872163F0D04F68EA2608F6783B874E4F50EEF
"
textAlignment=
"natural"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"tXq-br-C4i"
>
<rect
key=
"frame"
x=
"141"
y=
"102.5"
width=
"198"
height=
"100"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<constraints>
...
...
@@ -185,7 +185,7 @@
<!--SettingVC-->
<scene
sceneID=
"pv9-J4-of0"
>
<objects>
<viewController
id=
"o3F-Mf-qyV"
customClass=
"SettingVC"
customModule=
"HH
TMedicSDK
"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
id=
"o3F-Mf-qyV"
customClass=
"SettingVC"
customModule=
"HH
MSDKDemo
"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<layoutGuides>
<viewControllerLayoutGuide
type=
"top"
id=
"B3S-wn-Uqm"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"YOS-cd-yhV"
/>
...
...
@@ -198,7 +198,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"375"
height=
"623"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"SettingCell"
id=
"Bgf-fW-wAR"
customClass=
"SettingCell"
customModule=
"HH
TMedicSDK
"
customModuleProvider=
"target"
>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"SettingCell"
id=
"Bgf-fW-wAR"
customClass=
"SettingCell"
customModule=
"HH
MSDKDemo
"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"375"
height=
"43.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
tableViewCell=
"Bgf-fW-wAR"
id=
"Ied-xa-MDf"
>
...
...
HHMSDKDemo/SettingVC.swift
View file @
f63e7b3
...
...
@@ -69,6 +69,7 @@ class SettingVC : UIViewController {
(
"小助手默认昵称"
,
false
,
false
),
(
"信息流默认标题"
,
false
,
false
),
(
"开启定位"
,
false
,
true
),
(
"是否通过Present弹出信息流"
,
HHSDKOptions
.
default
.
mMessageOptions
.
isByPresent
,
true
),
])
sections
.
append
(
infoListSetting
)
...
...
@@ -223,6 +224,9 @@ extension SettingVC {
HHLocation
.
default
.
closeLocation
()
}
case
(
2
,
6
):
HHSDKOptions
.
default
.
mMessageOptions
.
isByPresent
=
isOpen
case
(
3
,
0
):
HHSDKOptions
.
default
.
mUserCenterOptions
.
hideUserCenter
=
isOpen
...
...
Podfile
View file @
f63e7b3
...
...
@@ -8,7 +8,7 @@ target 'HHMSDKDemo' do
project
'./HHMSDKDemo.xcodeproj'
pod
'SVProgressHUD'
pod
'SnapKit'
pod
'HHVDoctorSDK'
,
:git
=>
"http://code.hh-medic.com/hh_public/hhvDoctorSDK.ios.git"
pod
'HHVDoctorSDK'
,
:git
=>
"http://code.hh-medic.com/hh_public/hhvDoctorSDK.ios.git"
,
:branch
=>
'feature/medic'
end
...
...
Please
register
or
login
to post a comment