谢谢
解决方法 这是foursquare api linkFoursquare integration link的示例.
Foursquare集成的进一步代码
- (voID)vIEwDIDLoad{ [super vIEwDIDLoad]; self.Title = @"Foursquare"; //check the authentication if ([Foursquare2 isNeedToAuthorize]) { //If needed show the webvIEw webVIEw = [[UIWebVIEw alloc]initWithFrame:CGRectMake(0,320,480)]; Nsstring *url = [Nsstring stringWithFormat:@"https://foursquare.com/oauth2/authenticate?display=touch&clIEnt_ID=%@&response_type=code&redirect_uri=%@",OAUTH_KEY,REDIRECT_URL]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:url]]; [webVIEw loadRequest:request]; [webVIEw setDelegate:self]; [self.vIEw addSubvIEw:webVIEw]; [webVIEw release]; mtableVIEw.hIDden = YES; }else{ //Show your vIEw mtableVIEw.hIDden = NO; [Foursquare2 searchVenuesNearByLatitude:@"40.763" longitude:@"-73.990" accuracyLL:nil altitude:nil accuracyAlt:nil query:@"" limit:@"15" intent:@"" callback:^(BOol success,ID result){ if (success) { tableData = [[FoursquareParser parseSearchVenuesResultsDictionary:(NSDictionary*)result] retain]; [mtableVIEw reloadData]; } }]; }}总结
以上是内存溢出为你收集整理的iPhone中的Foursquare集成全部内容,希望文章能够帮你解决iPhone中的Foursquare集成所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)