zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    delphi 缓冲画图(内存画图)解决画图闪烁问题
    多重启动光盘制作
    Delphi源程序格式书写规范
    得到一个数据库的触发器的sql
    Querying Active Directory using .NET classes and LDAP queries(http://www.codeproject.com/dotnet/activedirquery.asp)
    My Friend Blog
    .net good study
    关于javascript的apply和call函数
    Microsoft command
    明基成人礼:巅峰战将营 http://www.cnvn.com.cn/Article/ShowArticle.asp?ArticleID=3172
  • 原文地址:https://www.cnblogs.com/NFli/p/4451695.html
Copyright © 2011-2022 走看看