I want to check if the elements of an Array are a subclass of UILabel in Swift:
import UIKit var u1 = UILabel() u1.text=\"hello\" var u2 = UIView(frame: CGR
You may compare classes using the following in swift:
return object.dynamicType == otherObject.dynamicType
dynamicType will return an instance of Class which you may compare