신속하게이 블록 기능을 작성하는 방법은 무엇입니까? 주제에 대해 읽었지만 구문이 나에게별로 의미가 없습니다.Swift에서 블록 기능 작성
MyAppRequest *request = [_agent login];
[request sendWithLoadMessage:@"Signing In"
successMessage:@"Signed In"
failureMessage:@"Failed to log in"
recoveryOptions:@"If you keep having trouble, try going to http://mystrou.firehosehelp.com and try loggin in there. If that fails, try resetting your password"
success:^(MyAppResponse *response) {
PREFS.authToken = _agent.accessToken;
[_delegate loginViewController:self loggedInAgent:_agent];
} failure:^(MyAppResponse *response) {
}];
더 많은 코드를 게시주십시오 - 실종 통화 부분이 있습니다. – fluidsonic
그에 맞게 업데이트했습니다. – YichenBman