【发布时间】:2013-04-30 16:08:58
【问题描述】:
typedef enum {
artists = 0,
artists_songs = 1,
artist_albums = 2,
albums = 3,
album_songs = 4,
tags = 5,
tag = 6,
tag_artists = 7,
tag_albums = 8,
tag_songs = 9,
songs = 10,
song = 11,
playlists = 12,
playlist = 13,
playlist_songs = 14,
search_songs = 15
} Methods;
typedef enum {
artists = 0,
albums = 1,
songs = 2,
tags = 3,
playlists = 4
} ReturnTypes;
我在返回类型的艺术家 = 0 行上不断收到错误,说艺术家已被重新声明。我不确定这是什么语法错误。有什么想法吗?
【问题讨论】:
-
从任何一个枚举定义中删除
artists,它表示应用程序中artist常量的重复声明。
标签: objective-c enums