Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 744 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 744 Bytes

ZLPlaceHolderAnimationTextField

输入时placeholder带弹起动画的TextField

image

仅需设置成为焦点后的属性即可

    ZLPlaceHolderAnimationTextField *loginTextField = [[ZLPlaceHolderAnimationTextField alloc]initWithFrame:CGRectMake(20, 40, textFieldWidth, textFieldHeight)];
    loginTextField.placeholder = @"手机号码";
    loginTextField.aniPlaceHolderColor = [UIColor blueColor];
    loginTextField.aniPlaceHolderfont = [UIFont systemFontOfSize:12];

也可以通过修改placeholderColor和placeholderFont来设置成为焦点之前的placeholder属性