mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-16 16:28:45 +10:00
profileUser's instagram
This commit is contained in:
@@ -1361,7 +1361,7 @@ struct InstagramWork {
|
||||
func instagramWorkOfUserWithUserID(userID: String, #failureHandler: ((Reason, String?) -> Void)?, #completion: InstagramWork -> Void) {
|
||||
|
||||
let parse: JSONDictionary -> InstagramWork? = { data in
|
||||
println("instagramData:\(data)")
|
||||
//println("instagramData:\(data)")
|
||||
|
||||
if let mediaData = data["media"] as? [JSONDictionary] {
|
||||
var medias = Array<InstagramWork.Media>()
|
||||
|
||||
@@ -155,7 +155,7 @@ func userSkillsFromSkillsData(skillsData: [JSONDictionary], inRealm realm: Realm
|
||||
|
||||
func syncFriendshipsAndDoFurtherAction(furtherAction: () -> Void) {
|
||||
friendships { allFriendships in
|
||||
println("\n allFriendships: \(allFriendships)")
|
||||
//println("\n allFriendships: \(allFriendships)")
|
||||
|
||||
// 先整理出所有的 friend 的 userID
|
||||
var remoteUerIDSet = Set<String>()
|
||||
|
||||
@@ -241,6 +241,13 @@ class ProfileViewController: CustomNavigationBarViewController {
|
||||
vc.socialAccount = SocialAccount(rawValue: item)
|
||||
vc.profileUser = profileUser
|
||||
}
|
||||
|
||||
} else if segue.identifier == "showSocialWorkInstagram" {
|
||||
if let item = sender as? Int {
|
||||
let vc = segue.destinationViewController as! SocialWorkInstagramViewController
|
||||
vc.socialAccount = SocialAccount(rawValue: item)
|
||||
vc.profileUser = profileUser
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user