FahimF / FloatLabelFields

Text entry controls which contain a built-in title/label so that you don't have to add a separate title for each field.
MIT License
1.19k stars 107 forks source link

Initializer does not override a designated initializer from its superclass #4

Closed landfound closed 9 years ago

landfound commented 9 years ago

I am using swift 1.2 UITextView's designated initializer is

    // Create a new text view with the specified text container (can be nil) - this is the new designated initializer for this class
    @availability(iOS, introduced=7.0)
    init(frame: CGRect, textContainer: NSTextContainer?)

replace

    override init(frame:CGRect) {
        super.init(frame:frame)
        setup()
    }

with

    override init(frame: CGRect, textContainer: NSTextContainer?) {
        super.init(frame: frame, textContainer: textContainer)
        setup()
    }
YanSte commented 9 years ago

Thanks todaylover