Commit a81ec69d4b9a6cad64690402c6917671ec521e51
1 parent
3348440c
Exists in
newLive
no message
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
YouerLiveVideo/YouerLiveVideo/controllers/User/UserViewController.swift
@@ -54,6 +54,10 @@ class UserViewController: UIViewController { | @@ -54,6 +54,10 @@ class UserViewController: UIViewController { | ||
54 | } | 54 | } |
55 | 55 | ||
56 | func editBtnClick(){ | 56 | func editBtnClick(){ |
57 | + if !user.isOnline(){ | ||
58 | + self.view.makeToast("请先登录") | ||
59 | + return | ||
60 | + } | ||
57 | let vc = Story.instantiateViewControllerWithIdentifier("AppSettingViewControllerVC", storyName: "User") as! AppSettingViewController | 61 | let vc = Story.instantiateViewControllerWithIdentifier("AppSettingViewControllerVC", storyName: "User") as! AppSettingViewController |
58 | vc.title = "设置" | 62 | vc.title = "设置" |
59 | self.navigationController?.pushViewController(vc, animated: true) | 63 | self.navigationController?.pushViewController(vc, animated: true) |