什麼的^符號的意思是在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];
}
提前感謝!
塊文字。對於每個區塊來說,幾乎都有一個非阻塞的方法。 –
http://stackoverflow.com/questions/1912023/caret-in-objective-c –