Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMBase
Project
Project
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMBase
Commits
5e4f7828
Commit
5e4f7828
authored
Oct 20, 2020
by
乔金柱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'houchaoxin/dev' into 'master'
Houchaoxin/dev See merge request
!29
parents
66bd1a3d
5cc58d15
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
GMFloatWindow.m
GMBase/Classes/AddClass/GMFloatWindow.m
+5
-1
GMFloatWindowProtocol.h
GMBase/Classes/AddClass/GMFloatWindowProtocol.h
+4
-0
No files found.
GMBase/Classes/AddClass/GMFloatWindow.m
View file @
5e4f7828
...
...
@@ -38,9 +38,13 @@
}
-
(
void
)
showController
:(
UIViewController
*
)
controller
{
//如果之前已有controller
if
(
_controller
)
{
[(
id
<
GMFloatWindowProtocol
>
)
_controller
destroyOtherController
];
_controller
=
nil
;
}
if
(
self
.
superview
==
nil
)
{
[[
UIApplication
sharedApplication
].
keyWindow
addSubview
:
self
];
// [[AppDelegate shareInstance].window addSubview:self];
}
_controller
=
controller
;
[
self
addSubview
:
controller
.
view
];
...
...
GMBase/Classes/AddClass/GMFloatWindowProtocol.h
View file @
5e4f7828
...
...
@@ -20,4 +20,8 @@
GMFloatWindow 由小窗口模式到全屏模式,会调用此方法
*/
-
(
void
)
showOtherViews
;
/// 销毁当前的VC(解决关闭直播间依旧有声音的bug)
-
(
void
)
destroyOtherController
;
@end
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