设置textfiel的Placeholder

textfield.attributedPlaceholder=[[NSAttributedString alloc]initWithString:@"请输入"attributes:@{NSForegroundColorAttributeName:kTextColor999999}];

你可能感兴趣的:(iOS,原创)