2
Warum wird transform rotation
nicht im Storyboard angezeigt/angezeigt? Es funktioniert gut in der App. Ich habe andere Attribute innerhalb meiner @IBDesignable
Klasse, die gut funktioniert.Swift - @IBDesignable - Rotation wird nicht im Storyboard angezeigt
Wie kann ich das erreichen?
@IBDesignable
class CustomUILabel: UILabel {
@IBInspectable var label_Rotation: Double = 0 {
didSet {
rotateLabel(label_Rotation)
}
}
func rotateLabel(labelRotation: Double) {
self.transform = CGAffineTransformMakeRotation(CGFloat(M_PI_2 + labelRotation))
}
}