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;
我一直在ReturnTypes的artists = 0行發生錯誤,說藝術家已被重新聲明。我不確定這是什麼語法錯誤。有任何想法嗎?Obj-C enum重定義錯誤
從任何一個枚舉定義中刪除「artists」,它表示在應用程序中重複聲明'artist'常量。 – 2013-04-30 16:11:59