Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
flutter_boost_1.22.4
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李增强
flutter_boost_1.22.4
Commits
bfb71ebd
Commit
bfb71ebd
authored
May 15, 2020
by
justin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v1.12.13-hotfixes'
parents
6d98bca6
bdcc488e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+9
-1
No files found.
ios/Classes/container/FLBFlutterViewContainer.m
View file @
bfb71ebd
...
...
@@ -69,6 +69,7 @@
@property
(
nonatomic
,
assign
)
long
long
identifier
;
@property
(
nonatomic
,
copy
)
NSString
*
flbNibName
;
@property
(
nonatomic
,
strong
)
NSBundle
*
flbNibBundle
;
@property
(
nonatomic
,
assign
)
BOOL
deallocNotified
;
@end
#pragma clang diagnostic push
...
...
@@ -163,6 +164,7 @@ static NSUInteger kInstanceCounter = 0;
pageName:
_name
params:
_params
uniqueId:
[
self
uniqueIDString
]];
self
.
deallocNotified
=
NO
;
}
[
super
willMoveToParentViewController
:
parent
];
}
...
...
@@ -171,23 +173,29 @@ static NSUInteger kInstanceCounter = 0;
if
(
!
parent
)
{
//当VC被移出parent时,就通知flutter层销毁page
[
self
notifyWillDealloc
];
self
.
deallocNotified
=
YES
;
}
[
super
didMoveToParentViewController
:
parent
];
}
-
(
void
)
dismissViewControllerAnimated
:(
BOOL
)
flag
completion
:(
void
(
^
)(
void
))
completion
{
__weak
__typeof__
(
self
)
weakSelf
=
self
;
[
super
dismissViewControllerAnimated
:
flag
completion
:
^
(){
__strong
__typeof__
(
weakSelf
)
self
=
weakSelf
;
if
(
completion
)
{
completion
();
}
//当VC被dismiss时,就通知flutter层销毁page
[
self
notifyWillDealloc
];
self
.
deallocNotified
=
YES
;
}];
}
-
(
void
)
dealloc
{
if
(
!
self
.
deallocNotified
)
{
[
self
notifyWillDealloc
];
}
[
NSNotificationCenter
.
defaultCenter
removeObserver
:
self
];
}
...
...
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