swift 枚举类型
摘要:
import UIKit/***枚举类型*/enum direction{ case North case Sourth case East case West}//不会被默认为整数类型var d = direction.Eastd = .Westswitch d{ c... 阅读全文
posted @ 2014-11-02 13:30 best_cook 阅读(107) 评论(0) 推荐(0) 编辑
posted @ 2014-11-02 13:30 best_cook 阅读(107) 评论(0) 推荐(0) 编辑
posted @ 2014-11-02 00:33 best_cook 阅读(127) 评论(0) 推荐(0) 编辑