mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-19 01:36:18 +10:00
alert when can not reach github in SocialWorkGithub, ...
This commit is contained in:
@@ -86,9 +86,11 @@ class SocialWorkDribbbleViewController: BaseViewController {
|
||||
|
||||
if let userID = userID {
|
||||
|
||||
dribbbleWorkOfUserWithUserID(userID, failureHandler: { (reason, errorMessage) -> Void in
|
||||
dribbbleWorkOfUserWithUserID(userID, failureHandler: { [weak self] (reason, errorMessage) -> Void in
|
||||
defaultFailureHandler(reason, errorMessage)
|
||||
|
||||
YepAlert.alertSorry(message: NSLocalizedString("Network is not good!", comment: ""), inViewController: self)
|
||||
|
||||
}, completion: { dribbbleWork in
|
||||
println("dribbbleWork: \(dribbbleWork.shots.count)")
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ class SocialWorkGithubViewController: BaseViewController {
|
||||
navigationItem.titleView = accountImageView
|
||||
|
||||
} else {
|
||||
title = "Github"
|
||||
title = "GitHub"
|
||||
}
|
||||
|
||||
shareButton.enabled = false
|
||||
@@ -115,9 +115,11 @@ class SocialWorkGithubViewController: BaseViewController {
|
||||
|
||||
if let userID = userID {
|
||||
|
||||
githubWorkOfUserWithUserID(userID, failureHandler: { (reason, errorMessage) -> Void in
|
||||
githubWorkOfUserWithUserID(userID, failureHandler: { [weak self] (reason, errorMessage) -> Void in
|
||||
defaultFailureHandler(reason, errorMessage)
|
||||
|
||||
YepAlert.alertSorry(message: NSLocalizedString("Yep can't reach GitHub.\nWe blame GFW!", comment: ""), inViewController: self)
|
||||
|
||||
}, completion: { githubWork in
|
||||
println("githubWork: \(githubWork)")
|
||||
|
||||
|
||||
@@ -88,9 +88,11 @@ class SocialWorkInstagramViewController: BaseViewController {
|
||||
|
||||
if let userID = userID {
|
||||
|
||||
instagramWorkOfUserWithUserID(userID, failureHandler: { (reason, errorMessage) -> Void in
|
||||
instagramWorkOfUserWithUserID(userID, failureHandler: { [weak self] (reason, errorMessage) -> Void in
|
||||
defaultFailureHandler(reason, errorMessage)
|
||||
|
||||
YepAlert.alertSorry(message: NSLocalizedString("Network is not good!", comment: ""), inViewController: self)
|
||||
|
||||
}, completion: { instagramWork in
|
||||
println("instagramWork: \(instagramWork.medias.count)")
|
||||
|
||||
|
||||
@@ -542,3 +542,9 @@
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Version" = "Version";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Network is not good!" = "Network is not good!";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Yep can't reach GitHub.\nWe blame GFW!" = "Yep can't reach GitHub.\nWe blame GFW!";
|
||||
|
||||
@@ -544,3 +544,9 @@
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Version" = "版本";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Network is not good!" = "网络不太好!";
|
||||
|
||||
/* No comment provided by engineer. */
|
||||
"Yep can't reach GitHub.\nWe blame GFW!" = "Yep无法访问GitHub。\n一定是GFW从中做梗!";
|
||||
|
||||
Reference in New Issue
Block a user