资源简介
xmpp
代码片段和文件信息
//
// AppDelegate.m
// QingFangApp
//
// Created by ydc on 16/7/31.
// Copyright © 2016年 qingfang. All rights reserved.
//
#import “AppDelegate.h“
#import “XMPPframework.h“
#import “DDLog.h“
#import “DDTTYLogger.h“
#import “UrgooTabBarController.h“
#import “UGGuardViewController.h“
#import “AppDelegate.h“
#import “PushMsgModel.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
//ydc20160809 沙盒的路径
NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory NSUserDomainMask YES) lastobject];
NSLog(@“%@“path);
// 打开XMPP的日志
[DDLog addLogger:[DDTTYLogger sharedInstance]];
// 从沙里加载用户的数据到单例
[[WCUserInfo sharedWCUserInfo] loadUserInfoFromSanbox];
// 判断用户的登录状态,YES 直接来到主界面
if([WCUserInfo sharedWCUserInfo].loginStatus){
[self showTabBar];
// 自动登录服务
[[WCXMPPTool sharedWCXMPPTool] xmppUserLogin:nil];
}
// 1.创建窗口
self.window = [[UIWindow alloc] init];
self.window.frame = [UIScreen mainScreen].bounds;
//ydc 20160925 加入版本特性功能
if([[NSUserDefaults standardUserDefaults] objectForKey:@“guide“]){
if (myUsername!=nil) {
if(![myUsername isEqualToString:@““]){
[self showTabBar];
}else{
[self showLogin];
}
}else{
[self showLogin];
}
}else{
self.window.rootViewController = [[UGGuardViewController alloc]init];
}
//self.window.rootViewController = [[LoginViewController alloc] init];
//[self showLogin];
// 3.显示窗口
[self.window makeKeyAndVisible];
//ydc 20161217 远程通知 iOS8之后和之前应区别对待
/**if ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) {
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge | UIUserNotificationTypeAlert | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
} else {
[application registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIUserNotificationTypeSound];
}**/
// iOS8之后和之前应区别对待
if ([[UIDevice currentDevice].systemVersion floatValue] >= 8.0) {
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeBadge | UIUserNotificationTypeAlert | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
} else {
[application registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIUserNotificationTypeSound];
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-08-05 22:39 myxmpp\
文件 8196 2017-08-08 20:48 myxmpp\.DS_Store
目录 0 2017-08-08 21:04 __MACOSX\
目录 0 2017-08-08 21:04 __MACOSX\myxmpp\
文件 120 2017-08-08 20:48 __MACOSX\myxmpp\._.DS_Store
目录 0 2017-08-08 20:44 myxmpp\QingFangApp\
文件 10244 2017-08-08 21:03 myxmpp\QingFangApp\.DS_Store
目录 0 2017-08-08 21:04 __MACOSX\myxmpp\QingFangApp\
文件 120 2017-08-08 21:03 __MACOSX\myxmpp\QingFangApp\._.DS_Store
目录 0 2017-08-07 23:19 myxmpp\QingFangApp\.svn\
文件 6148 2017-08-07 23:40 myxmpp\QingFangApp\.svn\.DS_Store
目录 0 2017-08-08 21:04 __MACOSX\myxmpp\QingFangApp\.svn\
文件 120 2017-08-07 23:40 __MACOSX\myxmpp\QingFangApp\.svn\._.DS_Store
文件 3 2016-12-03 17:34 myxmpp\QingFangApp\.svn\entries
文件 181 2016-12-03 17:34 __MACOSX\myxmpp\QingFangApp\.svn\._entries
文件 3 2016-12-03 17:34 myxmpp\QingFangApp\.svn\format
文件 181 2016-12-03 17:34 __MACOSX\myxmpp\QingFangApp\.svn\._format
目录 0 2017-08-07 23:19 myxmpp\QingFangApp\.svn\pristine\
文件 30724 2017-08-07 23:19 myxmpp\QingFangApp\.svn\pristine\.DS_Store
目录 0 2017-08-08 21:04 __MACOSX\myxmpp\QingFangApp\.svn\pristine\
文件 120 2017-08-07 23:19 __MACOSX\myxmpp\QingFangApp\.svn\pristine\._.DS_Store
目录 0 2016-12-04 22:12 myxmpp\QingFangApp\.svn\pristine\00\
文件 1599 2016-12-03 17:34 myxmpp\QingFangApp\.svn\pristine\00\005bf4dd95cf3c4219ff538fe28d952ad89e84dc.svn-ba
目录 0 2017-08-08 21:04 __MACOSX\myxmpp\QingFangApp\.svn\pristine\00\
文件 181 2016-12-03 17:34 __MACOSX\myxmpp\QingFangApp\.svn\pristine\00\._005bf4dd95cf3c4219ff538fe28d952ad89e84dc.svn-ba
文件 1559 2016-12-03 17:34 myxmpp\QingFangApp\.svn\pristine\00\0078112916f4cb42889e0599390f7bf9bed7061a.svn-ba
文件 181 2016-12-03 17:34 __MACOSX\myxmpp\QingFangApp\.svn\pristine\00\._0078112916f4cb42889e0599390f7bf9bed7061a.svn-ba
文件 333 2016-12-03 17:34 myxmpp\QingFangApp\.svn\pristine\00\007bfda65e6577bd4e79c0b2161db0df0830aae7.svn-ba
文件 181 2016-12-03 17:34 __MACOSX\myxmpp\QingFangApp\.svn\pristine\00\._007bfda65e6577bd4e79c0b2161db0df0830aae7.svn-ba
文件 5529 2016-12-04 22:12 myxmpp\QingFangApp\.svn\pristine\00\0093890cb613ffaa6600cb2b9dda3a68c598ff81.svn-ba
文件 181 2016-12-04 22:12 __MACOSX\myxmpp\QingFangApp\.svn\pristine\00\._0093890cb613ffaa6600cb2b9dda3a68c598ff81.svn-ba
............此处省略5631个文件信息
- 上一篇:stm32智能小车的代码
- 下一篇:OpenCL异构并行计算(完整版)
评论
共有 条评论