//传入类 func className(object:AnyObject) -> String!{ let classname = String(object_getClass(object)) let subRange = classname.rangeOfString(".") if subRange != nil{ return classname.substringFromIndex((subRange?.endIndex)!) } return classname }
本文链接:https://it72.com:4443/8787.htm