2017-11-11 23 views
0

私はUITextFieldを透明にする方法を考え出しましたが、プレースホルダテキストを白にする必要があります。これは可能ですか?あなたの助けを前もってありがとう!Xcode UItextField透明度

答えて

0

これを試してみてください:

UIColor *color = [UIColor whiteColor]; 
textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholderText attributes:@{NSForegroundColorAttributeName: color}];