From 661fe6347a8e5ed24159385dbd893a4f2a02ef58 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 12:09:22 +0800 Subject: [PATCH 01/31] update version 1.0 (94) --- Podfile.lock | 2 +- Yep/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Podfile.lock b/Podfile.lock index 5580f8ac..a80d6d99 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -71,7 +71,7 @@ DEPENDENCIES: EXTERNAL SOURCES: MZFayeClient: - :path: "../CatchLib-iOS/MZFayeClient/" + :path: ../CatchLib-iOS/MZFayeClient/ Realm: :branch: swift-2.0 :git: https://github.com/realm/realm-cocoa.git diff --git a/Yep/Info.plist b/Yep/Info.plist index a5e847be..9fa30ab7 100644 --- a/Yep/Info.plist +++ b/Yep/Info.plist @@ -32,7 +32,7 @@ CFBundleVersion - 93 + 94 Fabric APIKey From 5280ae7fd64a50d79918bf91d7ffd0afa2cb25e3 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 13:56:07 +0800 Subject: [PATCH 02/31] font, navigationBar title color --- Yep/AppDelegate.swift | 2 +- Yep/Extensions/UIColor+Yep.swift | 4 ++++ Yep/Extensions/UIFont+Yep.swift | 18 ++++++++++++------ Yep/Views/Labels/NavigationTitleLabel.swift | 2 +- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/Yep/AppDelegate.swift b/Yep/AppDelegate.swift index 380c8810..afc84e0b 100644 --- a/Yep/AppDelegate.swift +++ b/Yep/AppDelegate.swift @@ -304,7 +304,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { }() let textAttributes = [ - NSForegroundColorAttributeName: UIColor.yepTintColor(), + NSForegroundColorAttributeName: UIColor.yepNavgationBarTitleColor(), NSShadowAttributeName: shadow, NSFontAttributeName: UIFont.navigationBarTitleFont() ] diff --git a/Yep/Extensions/UIColor+Yep.swift b/Yep/Extensions/UIColor+Yep.swift index 342c0b3e..e806accf 100644 --- a/Yep/Extensions/UIColor+Yep.swift +++ b/Yep/Extensions/UIColor+Yep.swift @@ -13,6 +13,10 @@ extension UIColor { return UIColor(red: 50/255.0, green: 167/255.0, blue: 255/255.0, alpha: 1.0) } + class func yepNavgationBarTitleColor() -> UIColor { + return UIColor(red: 0.247, green: 0.247, blue: 0.247, alpha: 1.0) + } + class func avatarBackgroundColor() -> UIColor { return UIColor(red: 50/255.0, green: 167/255.0, blue: 255/255.0, alpha: 0.3) } diff --git a/Yep/Extensions/UIFont+Yep.swift b/Yep/Extensions/UIFont+Yep.swift index 55c15622..5fe83336 100644 --- a/Yep/Extensions/UIFont+Yep.swift +++ b/Yep/Extensions/UIFont+Yep.swift @@ -14,26 +14,32 @@ extension UIFont { } class func skillTextFont() -> UIFont { - return UIFont(name: "Helvetica-Light", size: 14)! + //return UIFont(name: "Helvetica-Light", size: 14)! + return UIFont.systemFontOfSize(14) } class func skillTextLargeFont() -> UIFont { - return UIFont(name: "Helvetica-Light", size: 20)! + //return UIFont(name: "Helvetica-Light", size: 20)! + return UIFont.systemFontOfSize(20) } class func skillHomeTextLargeFont() -> UIFont { - return UIFont(name: "Helvetica-Light", size: 18)! + //return UIFont(name: "Helvetica-Light", size: 18)! + return UIFont.systemFontOfSize(18) } class func skillHomeButtonFont() -> UIFont { - return UIFont(name: "Helvetica-Light", size: 16)! + //return UIFont(name: "Helvetica-Light", size: 16)! + return UIFont.systemFontOfSize(16) } class func barButtonFont() -> UIFont { - return UIFont(name: "Helvetica-Light", size: 14)! + //return UIFont(name: "Helvetica-Light", size: 14)! + return UIFont.systemFontOfSize(14) } class func navigationBarTitleFont() -> UIFont { - return UIFont(name: "Helvetica-Bold", size: 15)! + //return UIFont(name: "Helvetica-Bold", size: 15)! + return UIFont.boldSystemFontOfSize(15) } } diff --git a/Yep/Views/Labels/NavigationTitleLabel.swift b/Yep/Views/Labels/NavigationTitleLabel.swift index bb2443ec..76eb6d67 100644 --- a/Yep/Views/Labels/NavigationTitleLabel.swift +++ b/Yep/Views/Labels/NavigationTitleLabel.swift @@ -21,7 +21,7 @@ class NavigationTitleLabel: UILabel { textAlignment = .Center font = UIFont.navigationBarTitleFont() - textColor = UIColor.yepTintColor() + textColor = UIColor.yepNavgationBarTitleColor() sizeToFit() } From b52ea351c56fdd12a4cb6baa1bb81afb635cb406 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 13:57:51 +0800 Subject: [PATCH 03/31] NSLocalizedString("Nickname", comment: "") --- .../Register/RegisterPickNameViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yep/ViewControllers/Register/RegisterPickNameViewController.swift b/Yep/ViewControllers/Register/RegisterPickNameViewController.swift index 015a32a9..3c4beca0 100644 --- a/Yep/ViewControllers/Register/RegisterPickNameViewController.swift +++ b/Yep/ViewControllers/Register/RegisterPickNameViewController.swift @@ -63,7 +63,7 @@ class RegisterPickNameViewController: BaseViewController { let tap = UITapGestureRecognizer(target: self, action: "tapTerms") promptTermsLabel.addGestureRecognizer(tap) - //nameTextField.placeholder = "" + nameTextField.placeholder = NSLocalizedString("Nickname", comment: "") nameTextField.delegate = self nameTextField.addTarget(self, action: "textFieldDidChange:", forControlEvents: .EditingChanged) From 69be396dd11da23e5b81ddfb1ff958004e0cf327 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 13:59:49 +0800 Subject: [PATCH 04/31] By tapping --- .../Register/RegisterPickNameViewController.swift | 2 +- Yep/en.lproj/Localizable.strings | 2 +- Yep/zh-Hans.lproj/Localizable.strings | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Yep/ViewControllers/Register/RegisterPickNameViewController.swift b/Yep/ViewControllers/Register/RegisterPickNameViewController.swift index 3c4beca0..62f0a7f1 100644 --- a/Yep/ViewControllers/Register/RegisterPickNameViewController.swift +++ b/Yep/ViewControllers/Register/RegisterPickNameViewController.swift @@ -42,7 +42,7 @@ class RegisterPickNameViewController: BaseViewController { pickNamePromptLabel.text = NSLocalizedString("What's your name?", comment: "") - let text = NSLocalizedString("By tap Next you agree to our terms.", comment: "") + let text = NSLocalizedString("By tapping Next you agree to our terms.", comment: "") let textAttributes: [String: AnyObject] = [ NSFontAttributeName: UIFont.systemFontOfSize(14), NSForegroundColorAttributeName: UIColor.grayColor(), diff --git a/Yep/en.lproj/Localizable.strings b/Yep/en.lproj/Localizable.strings index 8ded021b..b91f670c 100644 --- a/Yep/en.lproj/Localizable.strings +++ b/Yep/en.lproj/Localizable.strings @@ -66,7 +66,7 @@ /* No comment provided by engineer. */ "Build world together" = "Build world together"; -"By tap Next you agree to our terms." = "By tap Next you agree to our terms."; +"By tapping Next you agree to our terms." = "By tapping Next you agree to our terms."; /* No comment provided by engineer. */ "Call me" = "Call me"; diff --git a/Yep/zh-Hans.lproj/Localizable.strings b/Yep/zh-Hans.lproj/Localizable.strings index 2c66ed19..2c8815e0 100644 --- a/Yep/zh-Hans.lproj/Localizable.strings +++ b/Yep/zh-Hans.lproj/Localizable.strings @@ -66,7 +66,7 @@ /* No comment provided by engineer. */ "Build world together" = "共建世界"; -"By tap Next you agree to our terms." = "点击下一步表示您同意我们的条款。"; +"By tapping Next you agree to our terms." = "点击下一步表示您同意我们的条款。"; /* No comment provided by engineer. */ "Call me" = "呼叫我"; From 070bfac32f216d82a5a4406791fa26a9b599d40b Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 14:01:59 +0800 Subject: [PATCH 05/31] placeholders --- Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift | 2 +- .../Register/RegisterPickNameViewController.swift | 2 +- .../Register/RegisterVerifyMobileViewController.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift b/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift index 3a38de7d..caa3fd5b 100644 --- a/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift +++ b/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift @@ -60,7 +60,7 @@ class LoginVerifyMobileViewController: UIViewController { verifyMobileNumberPromptLabel.text = NSLocalizedString("Input verification code send to", comment: "") phoneNumberLabel.text = "+" + areaCode + " " + mobile - //verifyCodeTextField.placeholder = "" + verifyCodeTextField.placeholder = " " verifyCodeTextField.delegate = self verifyCodeTextField.addTarget(self, action: "textFieldDidChange:", forControlEvents: .EditingChanged) diff --git a/Yep/ViewControllers/Register/RegisterPickNameViewController.swift b/Yep/ViewControllers/Register/RegisterPickNameViewController.swift index 62f0a7f1..a4d4f586 100644 --- a/Yep/ViewControllers/Register/RegisterPickNameViewController.swift +++ b/Yep/ViewControllers/Register/RegisterPickNameViewController.swift @@ -63,7 +63,7 @@ class RegisterPickNameViewController: BaseViewController { let tap = UITapGestureRecognizer(target: self, action: "tapTerms") promptTermsLabel.addGestureRecognizer(tap) - nameTextField.placeholder = NSLocalizedString("Nickname", comment: "") + nameTextField.placeholder = " "//NSLocalizedString("Nickname", comment: "") nameTextField.delegate = self nameTextField.addTarget(self, action: "textFieldDidChange:", forControlEvents: .EditingChanged) diff --git a/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift b/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift index 9db1e687..dbb01d54 100644 --- a/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift +++ b/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift @@ -60,7 +60,7 @@ class RegisterVerifyMobileViewController: UIViewController { verifyMobileNumberPromptLabel.text = NSLocalizedString("Input verification code send to", comment: "") phoneNumberLabel.text = "+" + areaCode + " " + mobile - //verifyCodeTextField.placeholder = "" + verifyCodeTextField.placeholder = " " verifyCodeTextField.delegate = self verifyCodeTextField.addTarget(self, action: "textFieldDidChange:", forControlEvents: .EditingChanged) From aa53a7e1719aba19b29a6320c9623b3ee98dd020 Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 14:05:14 +0800 Subject: [PATCH 06/31] sent to --- Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift | 2 +- .../Register/RegisterVerifyMobileViewController.swift | 2 +- Yep/en.lproj/Localizable.strings | 2 +- Yep/zh-Hans.lproj/Localizable.strings | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift b/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift index caa3fd5b..6bc93329 100644 --- a/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift +++ b/Yep/ViewControllers/Login/LoginVerifyMobileViewController.swift @@ -57,7 +57,7 @@ class LoginVerifyMobileViewController: UIViewController { NSNotificationCenter.defaultCenter().addObserver(self, selector: "activeAgain:", name: AppDelegate.Notification.applicationDidBecomeActive, object: nil) - verifyMobileNumberPromptLabel.text = NSLocalizedString("Input verification code send to", comment: "") + verifyMobileNumberPromptLabel.text = NSLocalizedString("Input verification code sent to", comment: "") phoneNumberLabel.text = "+" + areaCode + " " + mobile verifyCodeTextField.placeholder = " " diff --git a/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift b/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift index dbb01d54..7bad4ebf 100644 --- a/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift +++ b/Yep/ViewControllers/Register/RegisterVerifyMobileViewController.swift @@ -57,7 +57,7 @@ class RegisterVerifyMobileViewController: UIViewController { NSNotificationCenter.defaultCenter().addObserver(self, selector: "activeAgain:", name: AppDelegate.Notification.applicationDidBecomeActive, object: nil) - verifyMobileNumberPromptLabel.text = NSLocalizedString("Input verification code send to", comment: "") + verifyMobileNumberPromptLabel.text = NSLocalizedString("Input verification code sent to", comment: "") phoneNumberLabel.text = "+" + areaCode + " " + mobile verifyCodeTextField.placeholder = " " diff --git a/Yep/en.lproj/Localizable.strings b/Yep/en.lproj/Localizable.strings index b91f670c..b8aa18a2 100644 --- a/Yep/en.lproj/Localizable.strings +++ b/Yep/en.lproj/Localizable.strings @@ -207,7 +207,7 @@ "Hold for Voice" = "Hold for Voice"; /* No comment provided by engineer. */ -"Input verification code send to" = "Input verification code send to"; +"Input verification code sent to" = "Input verification code sent to"; /* No comment provided by engineer. */ "Introduce yourself here." = "Introduce yourself here."; diff --git a/Yep/zh-Hans.lproj/Localizable.strings b/Yep/zh-Hans.lproj/Localizable.strings index 2c8815e0..4bee50ce 100644 --- a/Yep/zh-Hans.lproj/Localizable.strings +++ b/Yep/zh-Hans.lproj/Localizable.strings @@ -206,7 +206,7 @@ "Hold for Voice" = "长按录制声音"; /* No comment provided by engineer. */ -"Input verification code send to" = "输入收到的短信验证码"; +"Input verification code sent to" = "输入收到的短信验证码"; /* No comment provided by engineer. */ "Introduce yourself here." = "此处是自我介绍"; From 06f32bef3aefd4d1cad323485f6b897d42d9dc0e Mon Sep 17 00:00:00 2001 From: nixzhu Date: Tue, 22 Sep 2015 14:23:32 +0800 Subject: [PATCH 07/31] yepViewBackgroundColor & yepInputTextColor --- Yep/Base.lproj/Intro.storyboard | 11 ++++++----- Yep/Extensions/UIColor+Yep.swift | 8 ++++++++ .../Login/LoginByMobileViewController.swift | 5 +++++ .../Login/LoginVerifyMobileViewController.swift | 4 ++++ .../Register/RegisterPickAvatarViewController.swift | 2 ++ .../Register/RegisterPickMobileViewController.swift | 5 +++++ .../Register/RegisterPickNameViewController.swift | 4 ++++ .../Register/RegisterVerifyMobileViewController.swift | 4 ++++ 8 files changed, 38 insertions(+), 5 deletions(-) diff --git a/Yep/Base.lproj/Intro.storyboard b/Yep/Base.lproj/Intro.storyboard index 1af3b6d3..1f0966d0 100644 --- a/Yep/Base.lproj/Intro.storyboard +++ b/Yep/Base.lproj/Intro.storyboard @@ -1,7 +1,8 @@ - + - + + @@ -113,7 +114,7 @@