SPSearch in CocoaLibSpotify

2019-04-12 22:29发布

I'm looking at CocoaLibSpotify, and trying to get a simple search request working. I make the request like this:

SPSearch *search = [[SPSearch alloc] initWithSearchQuery:@"Adele" inSession:[SPSession sharedSession] ];

And am then polling for the search to return with:

[search searchInProgress]

But I never see searchInProgress return a NO - ie. the search does not appear to ever complete.

I've searched through the documentation and examples but it hasn't helped me to understand how to use the SPSearch correctly - would definitely welcome some help here...

Thanks, Iain

标签: ios spotify
1条回答
何必那么认真
2楼-- · 2019-04-12 22:58

Use Key-Value Observing to observe changes to the properties you need.

查看更多
登录 后发表回答