您的位置:首页 > 其它

定义一个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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: