Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BreastFeedingAI-Demo-iOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
BreastFeedingAI-Demo-iOS
Commits
bbc6be6d
Commit
bbc6be6d
authored
Jun 05, 2022
by
jzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
952a05a2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
127 additions
and
156 deletions
+127
-156
AppDelegate.swift
BreastFeedingDemo/AppDelegate.swift
+15
-15
Main.storyboard
BreastFeedingDemo/Base.lproj/Main.storyboard
+1
-17
SceneDelegate.swift
BreastFeedingDemo/SceneDelegate.swift
+0
-5
ViewController.swift
BreastFeedingDemo/ViewController.swift
+111
-119
No files found.
BreastFeedingDemo/AppDelegate.swift
View file @
bbc6be6d
...
...
@@ -5,35 +5,35 @@
// Created by Jay Zhang on 2022/6/2.
//
import
UIKit
import
Flutter
// Used to connect plugins (only if you have plugins with iOS platform code).
import
FlutterPluginRegistrant
import
UIKit
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
lazy
var
flutterEngine
=
FlutterEngine
(
name
:
"my flutter engine"
)
func
application
(
_
:
UIApplication
,
didFinishLaunchingWithOptions
_
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
// Runs the default Dart entrypoint with a default Flutter route.
flutterEngine
.
run
()
// Used to connect plugins (only if you have plugins with iOS platform code).
GeneratedPluginRegistrant
.
register
(
with
:
flutterEngine
)
// Override point for customization after application launch.
return
true
}
// MARK: UISceneSession Lifecycle
func
application
(
_
application
:
UIApplication
,
configurationForConnecting
connectingSceneSession
:
UISceneSession
,
options
:
UIScene
.
ConnectionOptions
)
->
UISceneConfiguration
{
func
application
(
_
:
UIApplication
,
configurationForConnecting
connectingSceneSession
:
UISceneSession
,
options
_
:
UIScene
.
ConnectionOptions
)
->
UISceneConfiguration
{
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return
UISceneConfiguration
(
name
:
"Default Configuration"
,
sessionRole
:
connectingSceneSession
.
role
)
}
func
application
(
_
application
:
UIApplication
,
didDiscardSceneSessions
sceneSessions
:
Set
<
UISceneSession
>
)
{
func
application
(
_
:
UIApplication
,
didDiscardSceneSessions
_
:
Set
<
UISceneSession
>
)
{
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
BreastFeedingDemo/Base.lproj/Main.storyboard
View file @
bbc6be6d
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"20037"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
initialViewController=
"
Sik-Bb-ahv
"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"20037"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
initialViewController=
"
BYZ-38-t0r
"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<deployment
identifier=
"iOS"
/>
...
...
@@ -9,22 +9,6 @@
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<scenes>
<!--Navigation Controller-->
<scene
sceneID=
"0ey-3x-YtP"
>
<objects>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"5df-wq-WhE"
userLabel=
"First Responder"
customClass=
"UIResponder"
sceneMemberID=
"firstResponder"
/>
<navigationController
id=
"Sik-Bb-ahv"
sceneMemberID=
"viewController"
>
<navigationBar
key=
"navigationBar"
contentMode=
"scaleToFill"
id=
"wGR-Id-DNs"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</navigationBar>
<connections>
<segue
destination=
"BYZ-38-t0r"
kind=
"relationship"
relationship=
"rootViewController"
id=
"mv6-PK-FaQ"
/>
</connections>
</navigationController>
</objects>
<point
key=
"canvasLocation"
x=
"-1481"
y=
"-227"
/>
</scene>
<!--View Controller-->
<scene
sceneID=
"tne-QT-ifu"
>
<objects>
...
...
BreastFeedingDemo/SceneDelegate.swift
View file @
bbc6be6d
...
...
@@ -8,10 +8,8 @@
import
UIKit
class
SceneDelegate
:
UIResponder
,
UIWindowSceneDelegate
{
var
window
:
UIWindow
?
func
scene
(
_
scene
:
UIScene
,
willConnectTo
session
:
UISceneSession
,
options
connectionOptions
:
UIScene
.
ConnectionOptions
)
{
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
...
...
@@ -46,7 +44,4 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
BreastFeedingDemo/ViewController.swift
View file @
bbc6be6d
This diff is collapsed.
Click to expand it.
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