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
  • Merge requests
  • !16

Add UIAppearance properties

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/rcdilorenzo/master into master Oct 21, 2013
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: rcdilorenzo

Reasoning

If you add several of the floating label properties as UIAppearance selectors, it makes it so that you don't have to configure every single instance. I've been considering using this in an app that has tons of text fields in it, which makes UIAppearance nearly a requirement for single setup. However, this doesn't prohibit setting the properties exactly as they are on each instance. Also, you will override the UIAppearance property if you that property specifically on an instance.

UIAppearance Properties

  • [Added] floatingLabelFont
  • [Updated] floatingLabelTextColor
  • [Updated] floatingLabelActiveTextColor

Example Usage

Here's a simple example of how to use these UIAppearance properties if anyone is unfamiliar. This code must be executed before the 1st initialization of a JVFloatLabeledTextField:

[[JVFloatLabeledTextField appearance] setFloatingLabelActiveTextColor:[UIColor redColor]];
[[JVFloatLabeledTextField appearance] setFloatingLabelFont:[UIFont fontWithName:@"HelveticaNeue-UltraLight" size:kJVFieldFloatingLabelFontSize]];
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/rcdilorenzo/master