Skip to content

How to set text to WTReTextField? #8

@ApesTalk

Description

@ApesTalk

Hello, I am using WTReTextField in my project. I want to call setText: method and let it show a formatted string when WTReTextField is appear, so i overrided the WTReTextField's setText: method like this:

-(void)setText:(NSString *)text

{

[super setText:text];

[self formatInput:self];

}

However, when i running on iOS7 device, it crashed with information:

Auto Layout still required after executing -layoutSubviews. WTReTextField's implementation of -layoutSubviews needs to call super.

(null)

How can i fix it? Thanks in advance.
ps: I use Masonry layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions