2011-04-05 4 views
0

사람이 기본적인 오류가 점점 정확히 내가 .below 당신은에 메소드를 호출은 일정하지

@implementation myfirstflickrappViewController 

NSString *const FlickrAPIKey = @"14c39d71001b0fb84d1dacb6049580ec"; 

NSString *const text = @"hello"; 

NSString *urlString = 
[NSString stringWithFormat: 
@"http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=%@&tags=%@&per_page=25&format=json&nojsoncallback=1", 
FlickrAPIKey, text]; 

답변

1

code.`입니다 실패한 위치를 파악하는 ... 수 없습니다 "초기화 요소 것은 일정하지"메신저 NSString (s tringWithFormat:) - 그렇게 할 수없는 곳, 즉 방법이나 기능 외부. 문자열 리터럴과 같은 상수 표현식 만 허용됩니다.

코드를 -init 메서드 또는 클래스 이니셜 라이저에 넣을 수 있습니다.

+0

thanks man..totaly worked – kingston