Skip to content

Commit

Permalink
* 初始化工程
Browse files Browse the repository at this point in the history
  • Loading branch information
Caffe-del committed Aug 27, 2020
1 parent 560f290 commit 5886438
Show file tree
Hide file tree
Showing 17 changed files with 334 additions and 94 deletions.
46 changes: 42 additions & 4 deletions BottomBar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,37 @@
objects = {

/* Begin PBXBuildFile section */
954AE2DA24F5576C001D9D7C /* MusicDetailVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954AE2D924F5576C001D9D7C /* MusicDetailVC.swift */; };
954AE2DC24F563F7001D9D7C /* UIConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954AE2DB24F563F7001D9D7C /* UIConstants.swift */; };
956738D624F24B9B00A37838 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738D524F24B9B00A37838 /* AppDelegate.swift */; };
956738D824F24B9B00A37838 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738D724F24B9B00A37838 /* SceneDelegate.swift */; };
956738DA24F24B9B00A37838 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738D924F24B9B00A37838 /* ViewController.swift */; };
956738DD24F24B9B00A37838 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 956738DB24F24B9B00A37838 /* Main.storyboard */; };
956738DF24F24B9E00A37838 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 956738DE24F24B9E00A37838 /* Assets.xcassets */; };
956738E224F24B9E00A37838 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 956738E024F24B9E00A37838 /* LaunchScreen.storyboard */; };
956738EA24F25B8C00A37838 /* RootTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738E924F25B8C00A37838 /* RootTabBarController.swift */; };
956738EC24F25D2C00A37838 /* MusicViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738EB24F25D2C00A37838 /* MusicViewController.swift */; };
956738EE24F25D3600A37838 /* VideoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738ED24F25D3600A37838 /* VideoViewController.swift */; };
956738F024F25D6100A37838 /* BBSViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738EF24F25D6100A37838 /* BBSViewController.swift */; };
956738F224F25D6900A37838 /* AccountViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738F124F25D6900A37838 /* AccountViewController.swift */; };
956738F524F2B4E700A37838 /* RootTabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 956738F424F2B4E700A37838 /* RootTabBar.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
954AE2D924F5576C001D9D7C /* MusicDetailVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MusicDetailVC.swift; sourceTree = "<group>"; };
954AE2DB24F563F7001D9D7C /* UIConstants.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIConstants.swift; sourceTree = "<group>"; };
956738D224F24B9B00A37838 /* BottomBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BottomBar.app; sourceTree = BUILT_PRODUCTS_DIR; };
956738D524F24B9B00A37838 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
956738D724F24B9B00A37838 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
956738D924F24B9B00A37838 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
956738DC24F24B9B00A37838 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
956738DE24F24B9E00A37838 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
956738E124F24B9E00A37838 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
956738E324F24B9E00A37838 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
956738E924F25B8C00A37838 /* RootTabBarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootTabBarController.swift; sourceTree = "<group>"; };
956738EB24F25D2C00A37838 /* MusicViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MusicViewController.swift; sourceTree = "<group>"; };
956738ED24F25D3600A37838 /* VideoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VideoViewController.swift; sourceTree = "<group>"; };
956738EF24F25D6100A37838 /* BBSViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BBSViewController.swift; sourceTree = "<group>"; };
956738F124F25D6900A37838 /* AccountViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountViewController.swift; sourceTree = "<group>"; };
956738F424F2B4E700A37838 /* RootTabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootTabBar.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -56,9 +70,12 @@
956738D424F24B9B00A37838 /* BottomBar */ = {
isa = PBXGroup;
children = (
956738F324F2B45300A37838 /* Branch */,
956738D524F24B9B00A37838 /* AppDelegate.swift */,
956738D724F24B9B00A37838 /* SceneDelegate.swift */,
956738D924F24B9B00A37838 /* ViewController.swift */,
956738E924F25B8C00A37838 /* RootTabBarController.swift */,
954AE2DB24F563F7001D9D7C /* UIConstants.swift */,
956738F424F2B4E700A37838 /* RootTabBar.swift */,
956738DB24F24B9B00A37838 /* Main.storyboard */,
956738DE24F24B9E00A37838 /* Assets.xcassets */,
956738E024F24B9E00A37838 /* LaunchScreen.storyboard */,
Expand All @@ -67,6 +84,18 @@
path = BottomBar;
sourceTree = "<group>";
};
956738F324F2B45300A37838 /* Branch */ = {
isa = PBXGroup;
children = (
956738EB24F25D2C00A37838 /* MusicViewController.swift */,
954AE2D924F5576C001D9D7C /* MusicDetailVC.swift */,
956738ED24F25D3600A37838 /* VideoViewController.swift */,
956738EF24F25D6100A37838 /* BBSViewController.swift */,
956738F124F25D6900A37838 /* AccountViewController.swift */,
);
name = Branch;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -138,9 +167,16 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
956738F024F25D6100A37838 /* BBSViewController.swift in Sources */,
956738EC24F25D2C00A37838 /* MusicViewController.swift in Sources */,
956738F224F25D6900A37838 /* AccountViewController.swift in Sources */,
956738F524F2B4E700A37838 /* RootTabBar.swift in Sources */,
954AE2DA24F5576C001D9D7C /* MusicDetailVC.swift in Sources */,
956738DA24F24B9B00A37838 /* ViewController.swift in Sources */,
956738EA24F25B8C00A37838 /* RootTabBarController.swift in Sources */,
954AE2DC24F563F7001D9D7C /* UIConstants.swift in Sources */,
956738EE24F25D3600A37838 /* VideoViewController.swift in Sources */,
956738D624F24B9B00A37838 /* AppDelegate.swift in Sources */,
956738D824F24B9B00A37838 /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -287,6 +323,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = QNB8842V82;
INFOPLIST_FILE = BottomBar/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -305,6 +342,7 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = QNB8842V82;
INFOPLIST_FILE = BottomBar/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "59FC3B5D-1429-432D-BB93-E55BDE3A4BFF"
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "182D8CD6-FCF1-49F7-8B14-24100E484CAB"
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "BottomBar/RootTabBarController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "56"
endingLineNumber = "56"
landmarkName = "updateBottomStyle(_:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
30 changes: 30 additions & 0 deletions BottomBar/AccountViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// AccountViewController.swift
// BottomBar
//
// Created by 全达晖 on 2020/8/23.
// Copyright © 2020 全达晖. All rights reserved.
//

import UIKit

class AccountViewController: 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.
}
*/

}
22 changes: 5 additions & 17 deletions BottomBar/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,16 @@ import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {



var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let tabBarVC = RootTabBarController.init()
self.window?.rootViewController = tabBarVC
self.window?.makeKeyAndVisible()
return true
}

// 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)
}

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.
}


}

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions BottomBar/BBSViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// BBSViewController.swift
// BottomBar
//
// Created by 全达晖 on 2020/8/23.
// Copyright © 2020 全达晖. All rights reserved.
//

import UIKit

class BBSViewController: 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.
}
*/

}
19 changes: 0 additions & 19 deletions BottomBar/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<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>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand Down
25 changes: 25 additions & 0 deletions BottomBar/MusicDetailVC.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

//
// MusicDetailVC.swift
// BottomBar
//
// Created by 全达晖 on 2020/8/25.
// Copyright © 2020 全达晖. All rights reserved.
//

import UIKit

class MusicDetailVC: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.
}

override func viewWillAppear(_ animated: Bool) {
if let tabBarController = self.tabBarController as? RootTabBarController {
tabBarController.updateBottomStyle(.miniPlayViewOnly)
}
}
}
29 changes: 29 additions & 0 deletions BottomBar/MusicViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// MusicViewController.swift
// BottomBar
//
// Created by 全达晖 on 2020/8/23.
// Copyright © 2020 全达晖. All rights reserved.
//

import UIKit

class MusicViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.
}

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
let vc = MusicDetailVC.init()
self.navigationController?.pushViewController(vc, animated: true)
}

override func viewWillAppear(_ animated: Bool) {
if let tabBarController = self.tabBarController as? RootTabBarController {
tabBarController.updateBottomStyle(.all)
}
}
}
14 changes: 14 additions & 0 deletions BottomBar/RootTabBar.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// RootTabBar.swift
// BottomBar
//
// Created by 全达晖 on 2020/8/23.
// Copyright © 2020 全达晖. All rights reserved.
//

import UIKit

class RootTabBar: UITabBar {


}
Loading

0 comments on commit 5886438

Please sign in to comment.