| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // Global.swift
- // SocketChat
- //
- // Created by Justine on 16/6/16.
- // Copyright © 2016年 AppCoda. All rights reserved.
- //
- import Foundation
- /**
- 检测用户是否已登陆
- - returns: 用户已登陆 返回True 反之false
- */
- func isLogin()->Bool{
- let ret = ManagerUserDefault().SelectUserDefault("isLogin") as! Int
-
- if ret == 0{ return false}
- else{return true}
-
-
-
- }
- /**
- 注销登录
- */
- func logout(){
- print("logout 被调用")
- //退出返回到登录界面 需要释放的资源
- //1全局变量TCPClient,服务器各项IP
- //
- }
- /**
- 更新版本
- */
- func updateVersion(){
- //从指定网址读取json 比对版本号
- }
- /**
- * 通知中心相关
- * icon角标
- * 网络连接状态
- * 消息接收(不含通知)
- * 消息发送
- */
- func regNSNotification(){
- }
|