If you want to make your TextField simple like in Android Lollipop. In this code, your TextField will be clean with a single border at bottom and your placeholder/text. Checkout the below image for that.
Just add this code in your app and you are ready to go.
textField.layer.masksToBounds=YES; textField.backgroundColor=[UIColor clearColor]; textField.borderStyle = UITextBorderStyleNone; [textField setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"]; CALayer *bottomBorder = [CALayer layer]; bottomBorder.frame = CGRectMake(0, textField.frame.size.height - 2, textField.frame.size.width, 2.0f); bottomBorder.backgroundColor = [[UIColor whiteColor]CGColor]; [textField.layer addSublayer:bottomBorder];