2014-08-28 5 views
0

Facebook 페이지에 대한 작업에 문제가 있습니다.String을 URLWithString으로 설정할 수 없습니다.

currentVriendNSObject 클래스입니다. too many arguments to method call expected 1 have 2

-(void)goFB 
{ 
    NSURL *url = [NSURL URLWithString:@"fb://profile/%g",self.currentVriend.fbid]; 
    [[UIApplication sharedApplication] openURL:url]; 
} 

내가 잘못하고 무엇 :

나는 오류를 얻을? 다른 String을 만들 수 있습니까? 감사

답변

3

은 당신이 올바른있는 NSString 방법

NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"fb://profile/%g",self.currentVriend.fbid]]; 
누락 생각