검색어를 기반으로 YouTube 동영상 피드를 표시하도록 표보기를 맞춤 설정하려고합니다. 나는이 코드 http://pastebin.com/vmV2c0HT가 테이블 뷰에 YouTube 채널 피드를 표시한다는 것을 알았지 만 정상적으로 작동합니다. 그러나 사용자 피드 대신 쿼리를 검색하기 위해 viewDidLoad 함수를 수정할 때 항상 빈 테이블 뷰로 끝납니다. 어떤 도움을 주시면 감사하겠습니다YouTube UITableView Gigan을 사용하는 검색어에서
- (void)viewDidLoad {
GDataServiceGoogleYouTube *service = [self youTubeService];
NSString *searchString = @"football";
NSString *uploadsID = kGDataYouTubeUserFeedIDUploads;
NSURL *feedURL = [GDataServiceGoogleYouTube youTubeURLForFeedID:nil];
GDataQueryYouTube* query = [GDataQueryYouTube youTubeQueryWithFeedURL:feedURL];
[query setVideoQuery:searchString];
[query setMaxResults:5];
[service fetchFeedWithQuery:query delegate:self didFinishSelector:@selector(entryListFetchTicket:finishedWithFeed:)];
[super viewDidLoad];
}
:
여기 내있는 viewDidLoad 기능입니다.
--------------------- 해결책 ----------------------
문제는 두 부분으로했다 :
[서비스 fetchFeedWithQuery : 쿼리 대표 : 자기 didFinishSelector : @selector (요청 :
저기 쿼리의 실수, 전화를 가져 오기로 변경했다 finishedWithFeed :오류:)];
다른 선택 방법
- 모든 피드
페치한다 사촌 서비스는 다음 링크를 수행하지 않아야 구현되지 하였다 _service의 setServiceShouldFollowNextLinks : 아니오] 없다
나는이 페이지 http://everburning.com/news/mytube-searching-for-fun-and-profit/를 통과했지만 여전히 운이 없다. 일부는 도움이 될 수있다. – legendstyler