1、
#pragma mark 回调代理
#pragma mark 回调代理
@protocol
getOrgFunctionsDelegate <
NSObject
>
//加上此句,不强制要求实现
@optional
- (
void
)call_back_getOrgFunctionsWithResult:(
NSDictionary
*)result;
@end
@end
2、
@property
(
nonatomic
,
retain
)
id
<
getOrgFunctionsDelegate
> delegate;
3、
@synthesize
delegate;
if
(
delegate
!=
nil
&& [
delegate
respondsToSelector
:
@selector
(call_back_applyForOrgWithResult:)]) {
[
self
.
delegate
call_back_applyForOrgWithResult
:jsonDic];
}