struct YTMsgType:OptionSet {
public var rawValue:UInt
public static var text = YTMsgType(rawValue:1<<0)
public static var img = YTMsgType(rawValue:1<<1)
public static var praise = YTMsgType(rawValue:1<<2)
public static var award = YTMsgType(rawValue:1<<3)
public static var review = YTMsgType(rawValue:1<<4)
public static var delete = YTMsgType(rawValue:1<<5)
}
//
set = [.text, .praise, .img, .review]
//判断
ifcellContain.rawValue &YTMsgType.delete.rawValue > 0 {
print("---delete")
}
//......