相关疑难解决方法(0)

目标C中的插入符号

目标C中的插入符号是什么意思?

即.

void (^handler)(NSInteger);

来自Mac Dev Center

syntax objective-c

33
推荐指数
2
解决办法
2万
查看次数

^符号在Objective-C中意味着什么?

可能重复:
目标C中的插入符号

^符号在Objective-C中意味着什么?

码:

 GreeRequestServicePopup* requestPopup = [GreeRequestServicePopup popup];
 requestPopup.parameters = parameters;

 requestPopup.willLaunchBlock = ^(id aSender) {
 [[NSNotificationCenter defaultCenter] postNotificationName:@"request_service_popup_will_launch_block" object:nil];

 };

 requestPopup.didLaunchBlock = ^(id aSender) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"request_service_popup_did_launch_block" object:nil];
 };

 requestPopup.willDismissBlock = ^(id aSender) {
 [[NSNotificationCenter defaultCenter] postNotificationName:@"request_service_popup_will_dismiss_block" object:nil];
 };

 requestPopup.didDismissBlock = ^(id aSender) {
 [[NSNotificationCenter defaultCenter] postNotificationName:@"request_service_popup_did_dismiss_block" object:nil];
 };

 requestPopup.cancelBlock = ^(id aSender) {
 [[NSNotificationCenter defaultCenter] postNotificationName:@"request_service_popup_cancel_block" object:nil];
 };

 requestPopup.completeBlock = ^(id aSender) {
 [[NSNotificationCenter defaultCenter] postNotificationName:@"request_service_popup_complete_block" object:nil];
 };

 [self.navigationController showGreePopup:requestPopup];
 }
Run Code Online (Sandbox Code Playgroud)

提前致谢!

objective-c ios objective-c-blocks

2
推荐指数
1
解决办法
1553
查看次数

标签 统计

objective-c ×2

ios ×1

objective-c-blocks ×1

syntax ×1