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
9e00f5cf
Commit
9e00f5cf
authored
Dec 26, 2019
by
余玠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add button
parent
f29b6429
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
example/ios/Runner/NativeViewController.m
example/ios/Runner/NativeViewController.m
+14
-1
No files found.
example/ios/Runner/NativeViewController.m
View file @
9e00f5cf
...
...
@@ -27,9 +27,22 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
view
.
backgroundColor
=
[
UIColor
grayColor
];
self
.
flutterContainer
.
view
.
frame
=
CGRectInset
(
self
.
view
.
bounds
,
30
,
5
0
);
self
.
flutterContainer
.
view
.
frame
=
CGRectInset
(
self
.
view
.
bounds
,
30
,
10
0
);
[
self
.
view
addSubview
:
self
.
flutterContainer
.
view
];
[
self
addChildViewController
:
self
.
flutterContainer
];
UIButton
*
nativeButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
nativeButton
.
frame
=
CGRectMake
(
50
,
self
.
view
.
bounds
.
size
.
height
-
50
,
200
,
40
);
nativeButton
.
backgroundColor
=
[
UIColor
blueColor
];
[
nativeButton
setTitle
:
@"Button in Native"
forState
:
UIControlStateNormal
];
[
nativeButton
addTarget
:
self
action
:
@selector
(
pushMe
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
.
view
addSubview
:
nativeButton
];
}
-
(
void
)
pushMe
{
UIViewController
*
vc
=
[[
UIViewController
alloc
]
init
];
[
self
.
navigationController
pushViewController
:
vc
animated
:
YES
];
}
-
(
void
)
viewDidAppear
:(
BOOL
)
animated
{
...
...
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