BBCyclingLabel icon indicating copy to clipboard operation
BBCyclingLabel copied to clipboard

Can't subclass UILabel to BBCyclingLabel

Open jacobokoenig opened this issue 9 years ago • 2 comments

When I try to subclass my regular label on the identity inspector on the storyboard, it does not autocomplete the class as it usually does. Later on runtime it crashes because it can't make sense of the label.

This was installed using Cocoapods, XCode 8 and Swift 3.

jacobokoenig avatar Oct 20 '16 15:10 jacobokoenig

@jacobo360 ever figure this out?

waltermvp avatar Mar 20 '17 19:03 waltermvp

@jacobo360 So just figured out that BBCyclingLabel is not a subclass of UILabel, but rather UIView. If you drag a plain old view into interface builder you can subclass from BBCyclingLabel

waltermvp avatar Mar 20 '17 19:03 waltermvp