1
我有連接錯誤時嘗試施放自己的枚舉,以解決賬面價值:普查員鑄造
typedef enum {
kACTextFirstName = kABPersonFirstNameProperty, // error: expression is not an integer constant expression
kACTextLastName = (int)kABPersonLastNameProperty, // error: expression is not an integer constant expression
} ACFieldType;
如何解決這個問題?
謝謝。
我需要使用ABAddressBook的框架常量的值,如kABPersonLastNameProperty或kABPersonFirstNameProperty給init我的枚舉。
您應該接受一些答案... –
您是否導入了正確的標題? – ughoavgfhw
什麼是'kABPersonFirstNameProperty'? –