iPhone中的Foursquare集成

iPhone中的Foursquare集成,第1张

概述我正试图在iPhone中进行FourSquare集成.我无法通过Goggling找到任何好的指导方针….任何人都可以向我推荐iPhone中的FourSquare集成的良好指南或URL. 谢谢 这是foursquare api link Foursquare integration link的示例. Foursquare集成的进一步代码 - (void)viewDidLoad{ [supe 我正试图在iPhone中进行FourSquare集成.我无法通过Goggling找到任何好的指导方针….任何人都可以向我推荐iPhone中的FourSquare集成的良好指南或URL.

谢谢

解决方法 这是foursquare api link

Foursquare 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集成所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1004728.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存