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
0
Merge Requests
0
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
6e2b6dfb
Commit
6e2b6dfb
authored
Oct 16, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
避免调用动态方法
parent
87a43534
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+16
-14
No files found.
ios/Classes/container/FLBFlutterViewContainer.m
View file @
6e2b6dfb
...
@@ -176,13 +176,14 @@ static NSUInteger kInstanceCounter = 0;
...
@@ -176,13 +176,14 @@ static NSUInteger kInstanceCounter = 0;
[
FlutterBoostPlugin
sharedInstance
].
fParams
=
_params
;
[
FlutterBoostPlugin
sharedInstance
].
fParams
=
_params
;
}
}
//instead of calling [super viewWillAppear:animated];, call super's super
[
super
viewWillAppear
:
animated
];
struct
objc_super
target
=
{
// //instead of calling [super viewWillAppear:animated];, call super's super
.
super_class
=
class_getSuperclass
([
FlutterViewController
class
]),
// struct objc_super target = {
.
receiver
=
self
,
// .super_class = class_getSuperclass([FlutterViewController class]),
};
// .receiver = self,
NSMethodSignature
*
(
*
callSuper
)(
struct
objc_super
*
,
SEL
,
BOOL
animated
)
=
(
__typeof__
(
callSuper
))
objc_msgSendSuper
;
// };
callSuper
(
&
target
,
@selector
(
viewWillAppear
:
),
animated
);
// NSMethodSignature * (*callSuper)(struct objc_super *, SEL, BOOL animated) = (__typeof__(callSuper))objc_msgSendSuper;
// callSuper(&target, @selector(viewWillAppear:), animated);
}
}
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
...
@@ -220,13 +221,14 @@ static NSUInteger kInstanceCounter = 0;
...
@@ -220,13 +221,14 @@ static NSUInteger kInstanceCounter = 0;
pageName:
_name
pageName:
_name
params:
_params
params:
_params
uniqueId:
self
.
uniqueIDString
];
uniqueId:
self
.
uniqueIDString
];
// instead of calling [super viewDidDisappear:animated];, call super's super
[
super
viewDidDisappear
:
animated
];
struct
objc_super
target
=
{
//// instead of calling [super viewDidDisappear:animated];, call super's super
.
super_class
=
class_getSuperclass
([
FlutterViewController
class
]),
// struct objc_super target = {
.
receiver
=
self
,
// .super_class = class_getSuperclass([FlutterViewController class]),
};
// .receiver = self,
NSMethodSignature
*
(
*
callSuper
)(
struct
objc_super
*
,
SEL
,
BOOL
animated
)
=
(
__typeof__
(
callSuper
))
objc_msgSendSuper
;
// };
callSuper
(
&
target
,
@selector
(
viewDidDisappear
:
),
animated
);
// NSMethodSignature * (*callSuper)(struct objc_super *, SEL, BOOL animated) = (__typeof__(callSuper))objc_msgSendSuper;
// callSuper(&target, @selector(viewDidDisappear:), animated);
}
}
-
(
void
)
installSplashScreenViewIfNecessary
{
-
(
void
)
installSplashScreenViewIfNecessary
{
...
...
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