2012-05-17 42 views

回答

2

https://github.com/Constantine-Fry/Foursquare-API-v2/tree/master/Foursquare2-iOS

下載這個項目拖在你的項目和json解析器中的Foursquare2文件夾。

這是我做的地方,以獲得接近..

[Foursquare2 searchVenuesNearByLatitude:lat_String 
           longitude:log_String 
           accuracyLL:nil 
            altitude:nil 
           accuracyAlt:nil 
             query:searchString 
             limit:@"10" 
            intent:@"browse" 
           categoryId:nil 
            Radius:radius 
            callback:^(BOOL  success,id result){ 
             if (success) { 
              //  NSLog(@"Result : %@",result); 
              [self  parseplacesForSearch:result]; 
             } 
             else { 
               UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"Message" 
                            message:@"Sorry!! their is no places around your location" 
                           delegate:nil 
                        cancelButtonTitle:@"OK" 
                        otherButtonTitles:nil ]; 
              [alertView show]; 
              [alertView release]; 
             } 

            }]; 
+0

Surender喜Rathore, 謝謝....我想執行checkin並將它張貼在facebook和twitter上 – Ann

+0

有一種方法在Foursquare.m文件中添加簽入,方法名稱是createCheckinAtVenue ... –

相關問題