NSString错误-接口类型不能静态分配

| 我正在尝试创建一个NSDictionary对象,该对象的键定义为歌曲的编号以及信息。尝试定义要传递给方法的NSNumber时,出现上述错误:
+(NSDictionary *) initWithMPMediaItem:(MPMediaItem *) song andSongNumber: (NSNumber *)songCount{

NSString *songKey = @\"%@ Song Title\", songCount;
    
已邀请:
        看来您要使用:
NSString *songKey = [NSString stringWithFormat:@\"%@ Song Title\", songCount];
    

要回复问题请先登录注册