SPSearch in CocoaLibSpotify

2019-04-12 22:17发布

问题:

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

回答1:

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



标签: ios spotify