【发布时间】:2013-12-24 07:41:22
【问题描述】:
我正在尝试使用 Spotify Objective-c 库来搜索属于艺术家专辑的特定歌曲。我不想使用 searchWithSearchQuery 方法(它工作正常),因为我想更具体。有一个名为 searchWithURL 的方法,如下所示。我没有看到任何关于如何构建这些 URL 的文档。它只是说它必须以 spotify:search 开头。之后会发生什么?如何指定艺术家、专辑、歌曲?谢谢!
/** Creates a new SPSearch with the default page size from the given Spotify search URL.
This convenience method is simply returns a new, autoreleased SPSearch
object. No caching is performed.
@warning If you pass in an invalid search URL (i.e., any URL not
starting `spotify:search:`, this method will return `nil`.
@warning The search query will be sent to the Spotify search service
immediately. Be sure you want to perform the search before creating the object!
@param searchURL The search URL to create an SPSearch for.
@param aSession The SPSession the track should exist in.
@return Returns the created SPSearch object.
*/
+(SPSearch *)searchWithURL:(NSURL *)searchURL inSession:(SPSession *)aSession;
【问题讨论】:
标签: iphone objective-c cocoa spotify cocoalibspotify-2.0