Jak napisać funkcję bloku w szybkim tempie. Przeczytałem na ten temat, ale składnia po prostu nie ma dla mnie większego sensu.Zapisywanie funkcji blokowych w 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) {
}];
proszę pisać więcej kodu - nie są częściami rozmowy zaginionego. – fluidsonic
Jestem pewien, że odpowiednio zaktualizowałem – YichenBman