0
我想出了如何使UITextField透明,但我现在需要使占位符文本变为白色。这可能吗?在此先感谢您的帮助!Xcode UItextField Transparency
我想出了如何使UITextField透明,但我现在需要使占位符文本变为白色。这可能吗?在此先感谢您的帮助!Xcode UItextField Transparency
试试这个:
UIColor *color = [UIColor whiteColor];
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholderText attributes:@{NSForegroundColorAttributeName: color}];