Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • J JVFloatLabeledTextField
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 26
    • Issues 26
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Jared Verdi
  • JVFloatLabeledTextField
  • Issues
  • #157
Closed
Open
Issue created Jan 24, 2017 by Administrator@rootContributor

Wrong floatingLabel text

Created by: ikorich

Can't setup different text for Placeholder and FloatingTitle

self.textField.alwaysShowFloatingLabel = YES; [self.textField setPlaceholder:@"Placeholder" floatingTitle:@"Floating Title"];

click to text field, then click to some another view calls [UITextField resignFirstResponder]

and your code:

- (void)setAttributedText:(NSAttributedString *)attributedText { [self updateDefaultFloatingLabelFont]; }

- (void)setFloatingLabelFont:(UIFont *)floatingLabelFont { [self setFloatingLabelText:self.placeholder]; }

Result: floatingTitle and Placeholder has same text - Placeholder

Assignee
Assign to
Time tracking