mirror of
https://github.com/wahyd4/libr-ios.git
synced 2026-08-09 05:06:46 +10:00
#54 未登录用户隐藏关注按钮
This commit is contained in:
@@ -70,6 +70,8 @@ class ProfileViewController: UIViewController{
|
||||
override func viewDidAppear(animated: Bool) {
|
||||
|
||||
super.viewDidDisappear(animated)
|
||||
|
||||
|
||||
if self.isMe {
|
||||
self.followButton.hidden = true
|
||||
loadMeProfile()
|
||||
@@ -79,7 +81,9 @@ class ProfileViewController: UIViewController{
|
||||
if !self.forceHiddenBackButton{
|
||||
self.backButton.hidden = false
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -110,7 +114,15 @@ class ProfileViewController: UIViewController{
|
||||
} else {
|
||||
selfView.followButton.setTitle("关注", forState: .Normal)
|
||||
}
|
||||
selfView.followButton.hidden = false
|
||||
|
||||
|
||||
if let _ = LocalStore.accessToken() {
|
||||
selfView.followButton.hidden = false
|
||||
}
|
||||
else{
|
||||
selfView.followButton.hidden = true
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user