- (空)checkForAccessToken:(的NSString *)urlString {
NSUInteger loc1 = NSNotFound;
NSUInteger loc2 = NSNotFound;
NSString *accessStr = @"access_token=";
if ((loc1 = [urlString rangeOfString:accessStr].location) != NSNotFound && (loc2 = [urlString rangeOfString:@"&"].location) != NSNotFound){
if (loc1 + [accessStr length] < loc2){
if((loc2 - loc1-[accessStr length]) < [urlString length]){
NSUInteger test = [accessStr length];
NSString *accessToken = [urlString substringWithRange:NSMakeRange(loc1 +test , loc2 - loc1 - test)];
[_delegate accessTokenFound:accessToken];
}
}
}
好,我發現了什麼是需要在代碼更新,我們只是需要更新此功能,所有將再次工作....發佈代碼誰遭受同樣的問題。
我只是問一個問題,如果你沒有答案,爲什麼你會爲我投下? –