Verwenden Sie eine Abzweigung von Restkit auf GitHub über CocoaPods?

restkit ist die Verwendung in einer anderen Weise das oauth2-Protokoll, ich brauche den code zu ändern, um in der Lage, es auf meine Weise:

Aus:

//OAuth 2 valid request
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
    NSString *authorizationString = [NSString stringWithFormat:@"OAuth2 %@", self.OAuth2AccessToken];
    [_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
}

:

//OAuth 2 valid request
if (self.authenticationType == RKRequestAuthenticationTypeOAuth2) {
    NSString *authorizationString = [NSString stringWithFormat:@"Bearer %@", self.OAuth2AccessToken];
    [_URLRequest setValue:authorizationString forHTTPHeaderField:@"Authorization"];
}

Verwendung von "Träger" statt "Oauth2" ....

Ich bin mit CocoaPods zu importieren restkit in meinem Projekt.

Kann ich die Gabel Restkit-repository auf github, und verwenden Sie die Gabel über CocoaPod statt der offiziellen version?

InformationsquelleAutor der Frage Nicolas Henin | 2012-09-12

Schreibe einen Kommentar