我知道,在 Swift 中应该这样使用枚举常量
enum CompassPoint {
case North
case South
case East
case West
}
但是我该如何给第一个元素赋值,就像下面的Objective-C代码一样
enum ShareButtonID : NSInteger
{
ShareButtonIDFB = 100,
ShareButtonIDTwitter,
ShareButtonIDGoogleplus
}ShareButtonID;