XPML

1. XMPP

1.简介

一套即时通讯的协议

XMPP客户端: Spark

XMPP服务器: Openfire

客户端的SDK: XMPPFramework (核心)

2.库的配置

libxml2.dylib

libresolv.dylib

CFNetwork.framework

libidn.a

Security.framework

{//处理键盘遮挡
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dealShow:) name:UIKeyboardWillShowNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dealHide:) name:UIKeyboardWillHideNotification object:nil];
}
-(void)dealShow:(NSNotification *)n
{
    double time = [n.userInfo[@"UIKeyboardAnimationDurationUserInfoKey"] doubleValue];
    CGRect frame;
    [n.userInfo[@"UIKeyboardFrameEndUserInfoKey"] getValue:&frame];
    CGSize size = [UIScreen mainScreen].bounds.size;
    [UIView animateWithDuration:time animations:^{
        _toolBar.frame = CGRectMake(0, size.height-frame.size.height-44, _toolBar.frame.size.width, _toolBar.frame.size.height);
    }];
}
-(void)dealHide:(NSNotification *)n
{
    double time = [n.userInfo[@"UIKeyboardAnimationDurationUserInfoKey"] doubleValue];
    CGRect frame;
    [n.userInfo[@"UIKeyboardFrameEndUserInfoKey"] getValue:&frame];
    CGSize size = [UIScreen mainScreen].bounds.size;
    [UIView animateWithDuration:time animations:^{
        _toolBar.frame = CGRectMake(0, size.height-44, _toolBar.frame.size.width, _toolBar.frame.size.height);
    }];
}

2.pch文件的使用

build settings-->Apple LLVM -->prefix header -->$(PROJECT_DIR)/XMPPFrameworkUse/common.pch

#ifndef XMPPFrameworkUse_common_pch
#define XMPPFrameworkUse_common_pch

// Include any system framework and library headers here that should be included in all compilation units.
// You will also need to set the Prefix Header build setting of one or more of your targets to reference this file.

#import "UIView+DLQuickView.h"
#import "ZJXMPPManager.h"
#endif
时间: 2024-11-05 11:49:44

XPML的相关文章

.NET开发平台研究(四)

众所周知,数据科学是这几年才火起来的概念,而应运而生的数据科学家(data scientist)明显缺乏清晰的录取标准和工作内容.此次课程以<星际争霸II>回放文件分析为例,集中在IBM Cloud相关数据分析服务的应用.面对星际游戏爱好者希望提升技能的要求,我们使用IBM Data Science Experience中的jJupyter Notebooks来实现数据的可视化以及对数据进行深度分析,并最终存储到IBM Cloudant中.这是个介绍+动手实践的教程,参会者不仅将和讲师一起在线