Skip to content

Commit fd936e8

Browse files
author
蔡龙君
committed
feat |> 完成基本功能
1 parent eb929d2 commit fd936e8

19 files changed

+265
-160
lines changed

Example/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
platform :ios, '9.0'
2+
inhibit_all_warnings!
13
use_frameworks!
24

35
target 'SFAlertController_Example' do

Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ EXTERNAL SOURCES:
99
:path: "../"
1010

1111
SPEC CHECKSUMS:
12-
SFAlertController: d68c4da2b214de1c2a43fb8956a7c0a729de209e
12+
SFAlertController: 803ed97245f5b7bb4dd18915a14cba10717eb5e0
1313

14-
PODFILE CHECKSUM: 4c469a0ecc4d309ed47d7df139321f56f647f701
14+
PODFILE CHECKSUM: 22cf7d03eb202798a49758e9b0249ecdf1ebe74c
1515

1616
COCOAPODS: 1.7.1

Example/Pods/Local Podspecs/SFAlertController.podspec.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Manifest.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Pods.xcodeproj/project.pbxproj

Lines changed: 136 additions & 124 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-SFAlertController_Example/Pods-SFAlertController_Example-acknowledgements.markdown

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-SFAlertController_Example/Pods-SFAlertController_Example-acknowledgements.plist

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-SFAlertController_Example/Pods-SFAlertController_Example.debug.xcconfig

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/Pods-SFAlertController_Example/Pods-SFAlertController_Example.release.xcconfig

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Pods/Target Support Files/SFAlertController/SFAlertController.xcconfig

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/SFAlertController.xcodeproj/project.pbxproj

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
isa = PBXProject;
208208
attributes = {
209209
LastSwiftUpdateCheck = 0830;
210-
LastUpgradeCheck = 0830;
210+
LastUpgradeCheck = 1030;
211211
ORGANIZATIONNAME = "花菜";
212212
TargetAttributes = {
213213
607FACCF1AFB9204008FA782 = {
@@ -216,7 +216,7 @@
216216
};
217217
607FACE41AFB9204008FA782 = {
218218
CreatedOnToolsVersion = 6.3.1;
219-
LastSwiftMigration = 0900;
219+
LastSwiftMigration = 1030;
220220
TestTargetID = 607FACCF1AFB9204008FA782;
221221
};
222222
};
@@ -378,6 +378,7 @@
378378
isa = XCBuildConfiguration;
379379
buildSettings = {
380380
ALWAYS_SEARCH_USER_PATHS = NO;
381+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
381382
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
382383
CLANG_CXX_LIBRARY = "libc++";
383384
CLANG_ENABLE_MODULES = YES;
@@ -386,12 +387,14 @@
386387
CLANG_WARN_BOOL_CONVERSION = YES;
387388
CLANG_WARN_COMMA = YES;
388389
CLANG_WARN_CONSTANT_CONVERSION = YES;
390+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
389391
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
390392
CLANG_WARN_EMPTY_BODY = YES;
391393
CLANG_WARN_ENUM_CONVERSION = YES;
392394
CLANG_WARN_INFINITE_RECURSION = YES;
393395
CLANG_WARN_INT_CONVERSION = YES;
394396
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
397+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
395398
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
396399
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
397400
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -431,6 +434,7 @@
431434
isa = XCBuildConfiguration;
432435
buildSettings = {
433436
ALWAYS_SEARCH_USER_PATHS = NO;
437+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
434438
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
435439
CLANG_CXX_LIBRARY = "libc++";
436440
CLANG_ENABLE_MODULES = YES;
@@ -439,12 +443,14 @@
439443
CLANG_WARN_BOOL_CONVERSION = YES;
440444
CLANG_WARN_COMMA = YES;
441445
CLANG_WARN_CONSTANT_CONVERSION = YES;
446+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
442447
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
443448
CLANG_WARN_EMPTY_BODY = YES;
444449
CLANG_WARN_ENUM_CONVERSION = YES;
445450
CLANG_WARN_INFINITE_RECURSION = YES;
446451
CLANG_WARN_INT_CONVERSION = YES;
447452
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
453+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
448454
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
449455
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
450456
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
@@ -484,7 +490,7 @@
484490
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
485491
PRODUCT_NAME = "$(TARGET_NAME)";
486492
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
487-
SWIFT_VERSION = 4.0;
493+
SWIFT_VERSION = 5.0;
488494
};
489495
name = Debug;
490496
};
@@ -499,7 +505,7 @@
499505
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
500506
PRODUCT_NAME = "$(TARGET_NAME)";
501507
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
502-
SWIFT_VERSION = 4.0;
508+
SWIFT_VERSION = 5.0;
503509
};
504510
name = Release;
505511
};
@@ -519,8 +525,7 @@
519525
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
520526
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
521527
PRODUCT_NAME = "$(TARGET_NAME)";
522-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
523-
SWIFT_VERSION = 4.0;
528+
SWIFT_VERSION = 5.0;
524529
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SFAlertController_Example.app/SFAlertController_Example";
525530
};
526531
name = Debug;
@@ -537,8 +542,7 @@
537542
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
538543
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
539544
PRODUCT_NAME = "$(TARGET_NAME)";
540-
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
541-
SWIFT_VERSION = 4.0;
545+
SWIFT_VERSION = 5.0;
542546
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SFAlertController_Example.app/SFAlertController_Example";
543547
};
544548
name = Release;

Example/SFAlertController.xcodeproj/xcshareddata/xcschemes/SFAlertController-Example.xcscheme

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "1030"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -40,7 +40,6 @@
4040
buildConfiguration = "Debug"
4141
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4242
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43-
language = ""
4443
shouldUseLaunchSchemeArgsEnv = "YES">
4544
<Testables>
4645
<TestableReference
@@ -70,7 +69,6 @@
7069
buildConfiguration = "Debug"
7170
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7271
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73-
language = ""
7472
launchStyle = "0"
7573
useCustomWorkingDirectory = "NO"
7674
ignoresPersistentStateOnLaunch = "NO"

Example/SFAlertController/AppDelegate.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// AppDelegate.swift
33
// SFAlertController
44
//
5-
// Created by 蔡龙君 on 08/28/2019.
6-
// Copyright (c) 2019 蔡龙君. All rights reserved.
5+
// Created by 花菜 on 08/28/2019.
6+
// Copyright (c) 2019 花菜. All rights reserved.
77
//
88

99
import UIKit
@@ -14,7 +14,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1414
var window: UIWindow?
1515

1616

17-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1818
// Override point for customization after application launch.
1919
return true
2020
}

Example/SFAlertController/ViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// ViewController.swift
33
// SFAlertController
44
//
5-
// Created by 蔡龙君 on 08/28/2019.
6-
// Copyright (c) 2019 蔡龙君. All rights reserved.
5+
// Created by 花菜 on 08/28/2019.
6+
// Copyright (c) 2019 花菜. All rights reserved.
77
//
88

99
import UIKit
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//
2+
// Extensions.swift
3+
// SFAlertController
4+
//
5+
// Created by 蔡龙君 on 2019/8/28.
6+
// Copyright © 2019 花菜. All rights reserved.
7+
//
8+
9+
import Foundation

SFAlertController/Classes/ReplaceMe.swift

Whitespace-only changes.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// SFAlertCell.swift
3+
// SFAlertController
4+
//
5+
// Created by 蔡龙君 on 2019/8/28.
6+
// Copyright © 2019 花菜. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class SFAlertCell: UITableViewCell {
12+
13+
override func awakeFromNib() {
14+
super.awakeFromNib()
15+
// Initialization code
16+
}
17+
18+
override func setSelected(_ selected: Bool, animated: Bool) {
19+
super.setSelected(selected, animated: animated)
20+
21+
// Configure the view for the selected state
22+
}
23+
24+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//
2+
// SFAlertController.swift
3+
// SFAlertController
4+
//
5+
// Created by 蔡龙君 on 2019/8/28.
6+
// Copyright © 2019 花菜. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class SFAlertController: UIViewController {
12+
13+
override func viewDidLoad() {
14+
super.viewDidLoad()
15+
16+
// Do any additional setup after loading the view.
17+
}
18+
19+
20+
/*
21+
// MARK: - Navigation
22+
23+
// In a storyboard-based application, you will often want to do a little preparation before navigation
24+
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
25+
// Get the new view controller using segue.destination.
26+
// Pass the selected object to the new view controller.
27+
}
28+
*/
29+
30+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//
2+
// SFAlertHeaderView.swift
3+
// SFAlertController
4+
//
5+
// Created by 蔡龙君 on 2019/8/28.
6+
//
7+
8+
import UIKit
9+
10+
class SFAlertHeaderView: UIView {
11+
12+
/*
13+
// Only override draw() if you perform custom drawing.
14+
// An empty implementation adversely affects performance during animation.
15+
override func draw(_ rect: CGRect) {
16+
// Drawing code
17+
}
18+
*/
19+
20+
}

0 commit comments

Comments
 (0)