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
48fafd37
Commit
48fafd37
authored
Sep 23, 2019
by
Leo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add designated initializer
parent
8a706f68
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ios/Classes/container/FLBFlutterViewContainer.h
ios/Classes/container/FLBFlutterViewContainer.h
+1
-0
ios/Classes/container/FLBFlutterViewContainer.m
ios/Classes/container/FLBFlutterViewContainer.m
+13
-2
No files found.
ios/Classes/container/FLBFlutterViewContainer.h
View file @
48fafd37
...
...
@@ -29,6 +29,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface
FLBFlutterViewContainer
:
FlutterViewController
<
FLBFlutterContainer
>
@property
(
nonatomic
,
copy
,
readwrite
)
NSString
*
name
;
-
(
instancetype
)
init
NS_DESIGNATED_INITIALIZER
;
-
(
void
)
surfaceUpdated
:(
BOOL
)
appeared
;
-
(
void
)
setEnableForRunnersBatch
:(
BOOL
)
enable
;
@end
...
...
ios/Classes/container/FLBFlutterViewContainer.m
View file @
48fafd37
...
...
@@ -35,6 +35,8 @@
@interface
FLBFlutterViewContainer
()
@property
(
nonatomic
,
strong
,
readwrite
)
NSDictionary
*
params
;
@property
(
nonatomic
,
assign
)
long
long
identifier
;
@property
(
nonatomic
,
copy
)
NSString
*
flbNibName
;
@property
(
nonatomic
,
strong
)
NSBundle
*
flbNibBundle
;
@end
#pragma clang diagnostic push
...
...
@@ -45,13 +47,15 @@
{
[
FLUTTER_APP
.
flutterProvider
prepareEngineIfNeeded
];
if
(
self
=
[
super
initWithEngine
:
FLUTTER_APP
.
flutterProvider
.
engine
nibName:
nil
bundle:
nil
]){
nibName:
_flbNibName
bundle:
_flbNibBundle
]){
[
self
_setup
];
}
return
self
;
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wobjc-designated-initializers"
-
(
instancetype
)
initWithCoder
:(
NSCoder
*
)
aDecoder
{
if
(
self
=
[
super
initWithCoder
:
aDecoder
])
{
NSAssert
(
NO
,
@"unsupported init method!"
);
...
...
@@ -59,6 +63,13 @@
}
return
self
;
}
#pragma pop
-
(
instancetype
)
initWithNibName
:(
NSString
*
)
nibNameOrNil
bundle
:(
NSBundle
*
)
nibBundleOrNil
{
_flbNibName
=
nibNameOrNil
;
_flbNibBundle
=
nibBundleOrNil
;
return
[
self
init
];
}
-
(
void
)
setName
:(
NSString
*
)
name
params
:(
NSDictionary
*
)
params
{
...
...
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