定义一个Block
2015-06-28 00:43
363 查看
typedef enum {
XMPPResultTypeLoginSuccess,//登录成功
XMPPResultTypeLoginFailure,//登录失败
XMPPResultTypeNetErr//网络不给力
}XMPPResultType;
// 定义一个Block
typedef
void (^XMPPResultBlock)(XMPPResultType type);// XMPP请求结果的block
@interface AppDelegate :
UIResponder <UIApplicationDelegate>
@property (strong,
nonatomic) UIWindow *window;
-(void)xmppUserlogout;
-(void)xmppUserLogin:(XMPPResultBlock)resultBlock;
@end
XMPPResultTypeLoginSuccess,//登录成功
XMPPResultTypeLoginFailure,//登录失败
XMPPResultTypeNetErr//网络不给力
}XMPPResultType;
// 定义一个Block
typedef
void (^XMPPResultBlock)(XMPPResultType type);// XMPP请求结果的block
@interface AppDelegate :
UIResponder <UIApplicationDelegate>
@property (strong,
nonatomic) UIWindow *window;
-(void)xmppUserlogout;
-(void)xmppUserLogin:(XMPPResultBlock)resultBlock;
@end
相关文章推荐
- PHP本地实现虚拟域名访问:Apache虚拟主机配置
- leetcode解题报告228——Summary Ranges
- Zxing在CameraManager.get().closeDriver()报错
- Python 3.5 终于将 Type Hint(类型提示)官方化
- php页面静态化—优化页面响应时间
- Android横向滑动选项卡
- [综] Sparse Representation 稀疏表示
- SDWebImage
- 解决安装laravel/homestead vagrant环境报"A VirtualBox machine with the name 'homestead' already exists."的错误
- struts2 json includeProperties返回list为空
- 苹果Mac OS系统终端命令大全介绍
- Codeforces Round #310 (Div. 1) A B C
- 记一次理想浪漫的毕旅
- vijos 1054 牛场围栏 【想法题】
- 字符串右移函数
- .Net 配置文件——继承ConfigurationSection实现自定义处理类处理自定义配置节点
- .Net 配置文件——继承ConfigurationSection实现自定义处理类处理自定义配置节点
- iOS开发——CoreBluetooth蓝牙开发(三)
- 给Android的LinearLayout添加点击事件
- 利用TLE数据确定卫星轨道(1)-卫星轨道和TLE