1
我想創建一個NSDictionary對象,其中的鍵與歌曲的編號一起定義,以及信息。NSString錯誤 - 無法靜態分配接口類型
+(NSDictionary *) initWithMPMediaItem:(MPMediaItem *) song andSongNumber: (NSNumber *)songCount{
NSString *songKey = @"%@ Song Title", songCount;
感謝您的幫助試圖定義正在被傳遞到方法的NSNumber的時候,我發現了上面的錯誤!現在我知道了stringwithformat方法的作用了。 – Chris 2011-05-27 20:28:20