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
608d0df3
Commit
608d0df3
authored
Oct 16, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
避免使用动态方法导致苹果审核问题
parent
7d66d8cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+14
-12
No files found.
ios/Classes/container/FLBFlutterViewContainer.m
View file @
608d0df3
...
@@ -176,13 +176,14 @@ static NSUInteger kInstanceCounter = 0;
...
@@ -176,13 +176,14 @@ static NSUInteger kInstanceCounter = 0;
[
FlutterBoostPlugin
sharedInstance
].
fParams
=
_params
;
[
FlutterBoostPlugin
sharedInstance
].
fParams
=
_params
;
}
}
[
super
viewWillAppear
:
animated
];
//instead of calling [super viewWillAppear:animated];, call super's super
//instead of calling [super viewWillAppear:animated];, call super's super
struct
objc_super
target
=
{
//
struct objc_super target = {
.
super_class
=
class_getSuperclass
([
FlutterViewController
class
]),
//
.super_class = class_getSuperclass([FlutterViewController class]),
.
receiver
=
self
,
//
.receiver = self,
};
//
};
NSMethodSignature
*
(
*
callSuper
)(
struct
objc_super
*
,
SEL
,
BOOL
animated
)
=
(
__typeof__
(
callSuper
))
objc_msgSendSuper
;
//
NSMethodSignature * (*callSuper)(struct objc_super *, SEL, BOOL animated) = (__typeof__(callSuper))objc_msgSendSuper;
callSuper
(
&
target
,
@selector
(
viewWillAppear
:
),
animated
);
//
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
];
[
super
viewDidDisappear
:
animated
];
// instead of calling [super viewDidDisappear:animated];, call super's super
// instead of calling [super viewDidDisappear:animated];, call super's super
struct
objc_super
target
=
{
//
struct objc_super target = {
.
super_class
=
class_getSuperclass
([
FlutterViewController
class
]),
//
.super_class = class_getSuperclass([FlutterViewController class]),
.
receiver
=
self
,
//
.receiver = self,
};
//
};
NSMethodSignature
*
(
*
callSuper
)(
struct
objc_super
*
,
SEL
,
BOOL
animated
)
=
(
__typeof__
(
callSuper
))
objc_msgSendSuper
;
//
NSMethodSignature * (*callSuper)(struct objc_super *, SEL, BOOL animated) = (__typeof__(callSuper))objc_msgSendSuper;
callSuper
(
&
target
,
@selector
(
viewDidDisappear
:
),
animated
);
//
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