Commit b9ee7076 authored by pete谢兆麟's avatar pete谢兆麟

基本项目框架

parent 4ea4bd6b
......@@ -21,7 +21,15 @@ target 'galaxy' do
pod 'CryptoSwift','1.8.0'
#手动布局
pod 'SnapKit','5.6.0'
<<<<<<< Updated upstream
#上拉、下拉状态展示
pod 'Refresher','0.7.0'
=======
pod 'ESTabBarController-swift' , '2.8.0'
pod 'IQKeyboardManagerSwift','6.5.10'
>>>>>>> Stashed changes
end
......@@ -7,13 +7,14 @@
objects = {
/* Begin PBXBuildFile section */
04FAC5382B32B7FA00D24B36 /* YHTabbarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04FAC5372B32B7FA00D24B36 /* YHTabbarViewController.swift */; };
04FAC53A2B32B89D00D24B36 /* YHNavigationViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04FAC5392B32B89D00D24B36 /* YHNavigationViewController.swift */; };
04FAC5432B32BA5F00D24B36 /* YHHomeViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04FAC5422B32BA5F00D24B36 /* YHHomeViewController.swift */; };
04FAC5452B32BA7000D24B36 /* YHMyViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04FAC5442B32BA7000D24B36 /* YHMyViewController.swift */; };
04FAC5472B32BAE200D24B36 /* YHBaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04FAC5462B32BAE200D24B36 /* YHBaseViewController.swift */; };
6203A87EDC96313BBE789D9C /* Pods_galaxy.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 987C69D43AE8D85DC1930DCF /* Pods_galaxy.framework */; };
A5573ED22B317BFF00D98EC0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5573ED12B317BFF00D98EC0 /* AppDelegate.swift */; };
A5573ED42B317BFF00D98EC0 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5573ED32B317BFF00D98EC0 /* SceneDelegate.swift */; };
A5573ED62B317BFF00D98EC0 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5573ED52B317BFF00D98EC0 /* ViewController.swift */; };
A5573ED92B317BFF00D98EC0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A5573ED72B317BFF00D98EC0 /* Main.storyboard */; };
A5573EDB2B317C0000D98EC0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A5573EDA2B317C0000D98EC0 /* Assets.xcassets */; };
A5573EDE2B317C0000D98EC0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A5573EDC2B317C0000D98EC0 /* LaunchScreen.storyboard */; };
A5573EE92B317C0100D98EC0 /* galaxyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5573EE82B317C0100D98EC0 /* galaxyTests.swift */; };
A5573EF32B317C0100D98EC0 /* galaxyUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5573EF22B317C0100D98EC0 /* galaxyUITests.swift */; };
A5573EF52B317C0100D98EC0 /* galaxyUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5573EF42B317C0100D98EC0 /* galaxyUITestsLaunchTests.swift */; };
......@@ -37,15 +38,16 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
04FAC5372B32B7FA00D24B36 /* YHTabbarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHTabbarViewController.swift; sourceTree = "<group>"; };
04FAC5392B32B89D00D24B36 /* YHNavigationViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHNavigationViewController.swift; sourceTree = "<group>"; };
04FAC5422B32BA5F00D24B36 /* YHHomeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHomeViewController.swift; sourceTree = "<group>"; };
04FAC5442B32BA7000D24B36 /* YHMyViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHMyViewController.swift; sourceTree = "<group>"; };
04FAC5462B32BAE200D24B36 /* YHBaseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHBaseViewController.swift; sourceTree = "<group>"; };
58C2405158A4A6632D0E7460 /* Pods-galaxy.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-galaxy.debug.xcconfig"; path = "Target Support Files/Pods-galaxy/Pods-galaxy.debug.xcconfig"; sourceTree = "<group>"; };
987C69D43AE8D85DC1930DCF /* Pods_galaxy.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_galaxy.framework; sourceTree = BUILT_PRODUCTS_DIR; };
A5573ECE2B317BFF00D98EC0 /* galaxy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = galaxy.app; sourceTree = BUILT_PRODUCTS_DIR; };
A5573ED12B317BFF00D98EC0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
A5573ED32B317BFF00D98EC0 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
A5573ED52B317BFF00D98EC0 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
A5573ED82B317BFF00D98EC0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
A5573EDA2B317C0000D98EC0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
A5573EDD2B317C0000D98EC0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
A5573EDF2B317C0000D98EC0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
A5573EE42B317C0100D98EC0 /* galaxyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = galaxyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
A5573EE82B317C0100D98EC0 /* galaxyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = galaxyTests.swift; sourceTree = "<group>"; };
......@@ -81,6 +83,65 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
04FAC5352B32B79500D24B36 /* Base */ = {
isa = PBXGroup;
children = (
04FAC5362B32B7AA00D24B36 /* Controller */,
);
path = Base;
sourceTree = "<group>";
};
04FAC5362B32B7AA00D24B36 /* Controller */ = {
isa = PBXGroup;
children = (
04FAC5372B32B7FA00D24B36 /* YHTabbarViewController.swift */,
04FAC5392B32B89D00D24B36 /* YHNavigationViewController.swift */,
04FAC5462B32BAE200D24B36 /* YHBaseViewController.swift */,
);
path = Controller;
sourceTree = "<group>";
};
04FAC53B2B32B8F100D24B36 /* Modules */ = {
isa = PBXGroup;
children = (
04FAC53D2B32B91700D24B36 /* My */,
04FAC53C2B32B90E00D24B36 /* Home */,
);
path = Modules;
sourceTree = "<group>";
};
04FAC53C2B32B90E00D24B36 /* Home */ = {
isa = PBXGroup;
children = (
04FAC53F2B32B96300D24B36 /* Controller */,
);
path = Home;
sourceTree = "<group>";
};
04FAC53D2B32B91700D24B36 /* My */ = {
isa = PBXGroup;
children = (
04FAC53E2B32B95700D24B36 /* Controller */,
);
path = My;
sourceTree = "<group>";
};
04FAC53E2B32B95700D24B36 /* Controller */ = {
isa = PBXGroup;
children = (
04FAC5442B32BA7000D24B36 /* YHMyViewController.swift */,
);
path = Controller;
sourceTree = "<group>";
};
04FAC53F2B32B96300D24B36 /* Controller */ = {
isa = PBXGroup;
children = (
04FAC5422B32BA5F00D24B36 /* YHHomeViewController.swift */,
);
path = Controller;
sourceTree = "<group>";
};
4758815B24BAF3CAA24EC6A8 /* Pods */ = {
isa = PBXGroup;
children = (
......@@ -123,12 +184,10 @@
A5573ED02B317BFF00D98EC0 /* galaxy */ = {
isa = PBXGroup;
children = (
04FAC53B2B32B8F100D24B36 /* Modules */,
04FAC5352B32B79500D24B36 /* Base */,
A5573ED12B317BFF00D98EC0 /* AppDelegate.swift */,
A5573ED32B317BFF00D98EC0 /* SceneDelegate.swift */,
A5573ED52B317BFF00D98EC0 /* ViewController.swift */,
A5573ED72B317BFF00D98EC0 /* Main.storyboard */,
A5573EDA2B317C0000D98EC0 /* Assets.xcassets */,
A5573EDC2B317C0000D98EC0 /* LaunchScreen.storyboard */,
A5573EDF2B317C0000D98EC0 /* Info.plist */,
);
path = galaxy;
......@@ -257,9 +316,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A5573EDE2B317C0000D98EC0 /* LaunchScreen.storyboard in Resources */,
A5573EDB2B317C0000D98EC0 /* Assets.xcassets in Resources */,
A5573ED92B317BFF00D98EC0 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -326,9 +383,12 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A5573ED62B317BFF00D98EC0 /* ViewController.swift in Sources */,
04FAC5472B32BAE200D24B36 /* YHBaseViewController.swift in Sources */,
A5573ED22B317BFF00D98EC0 /* AppDelegate.swift in Sources */,
A5573ED42B317BFF00D98EC0 /* SceneDelegate.swift in Sources */,
04FAC5452B32BA7000D24B36 /* YHMyViewController.swift in Sources */,
04FAC53A2B32B89D00D24B36 /* YHNavigationViewController.swift in Sources */,
04FAC5382B32B7FA00D24B36 /* YHTabbarViewController.swift in Sources */,
04FAC5432B32BA5F00D24B36 /* YHHomeViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
......@@ -364,25 +424,6 @@
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
A5573ED72B317BFF00D98EC0 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
A5573ED82B317BFF00D98EC0 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
A5573EDC2B317C0000D98EC0 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
A5573EDD2B317C0000D98EC0 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
A5573EF62B317C0100D98EC0 /* Debug */ = {
isa = XCBuildConfiguration;
......@@ -518,9 +559,7 @@
INFOPLIST_FILE = galaxy/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
......@@ -551,9 +590,7 @@
INFOPLIST_FILE = galaxy/Info.plist;
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
......
......@@ -6,32 +6,37 @@
//
import UIKit
import ESTabBarController_swift
import IQKeyboardManagerSwift
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
setupMainWindow()
return true
}
//1.设置主窗口
private func setupMainWindow() {
let tabBarController = YHTabbarViewController()
let v1 = YHNavigationViewController(rootViewController: YHHomeViewController())
// MARK: UISceneSession Lifecycle
func application(_ 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)
}
let v2 = YHNavigationViewController(rootViewController:YHMyViewController())
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: 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.
v1.tabBarItem = ESTabBarItem.init(ESTabBarItemContentView(), title: "首页", image: UIImage(named: "home"), selectedImage: UIImage(named: "home_1"))
v2.tabBarItem = ESTabBarItem.init(ESTabBarItemContentView(), title: "我的", image: UIImage(named: "main"), selectedImage: UIImage(named: "find_1"))
tabBarController.viewControllers = [v1, v2]
tabBarController.tabBar.backgroundColor = .white
window = UIWindow(frame: UIScreen.main.bounds)
window?.rootViewController = tabBarController
window?.makeKeyAndVisible()
window?.backgroundColor = .white
}
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
//
// YHBaseViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import UIKit
class YHBaseViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
//
// YHNavigationViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import UIKit
class YHNavigationViewController: UINavigationController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
//
// YHTabbarViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import UIKit
import ESTabBarController_swift
class YHTabbarViewController: ESTabBarController {
override func viewDidLoad() {
super.viewDidLoad()
self.tabBar.shadowImage = UIImage()
self.tabBar.backgroundImage = UIImage()
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>
</dict>
<dict/>
</plist>
//
// YHHomeViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import UIKit
class YHHomeViewController: YHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
print("22222")
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
//
// YHMainViewController.swift
// galaxy
//
// Created by EDY on 2023/12/20.
//
import UIKit
class YHMyViewController: YHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
print("11111")
// Do any additional setup after loading the view.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
//
// SceneDelegate.swift
// galaxy
//
// Created by davidhuangA on 2023/12/19.
//
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.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
guard let _ = (scene as? UIWindowScene) else { return }
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// 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.
}
}
//
// ViewController.swift
// galaxy
//
// Created by davidhuangA on 2023/12/19.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment