UITextField placeholder string is always Top aligned in ios7

后端 未结 6 2625
滥情空心
滥情空心 2021-02-20 00:44

I have subclass the UITextField class and did the below code

- (void)drawPlaceholderInRect:(CGRect)rect
{

    [self.placeHolderTextColor setFill];
    [self.pl         


        
6条回答
  •  说谎
    说谎 (楼主)
    2021-02-20 01:15

    Because you have set yourTextField.borderStyle = UITextBorderStyle....

提交回复
热议问题