【发布时间】:2019-09-26 11:54:52
【问题描述】:
我解决了这个问题,我创建了一个函数,我只需传递我需要的间距值和 TextField
public static void ChangeSpaceBetweenCharacters(this UITextField textField, float space)
{
textField.WeakDefaultTextAttributes.SetValueForKey(NSObject.FromObject((nfloat)space), UIStringAttributeKey.KerningAdjustment);
}
最好的问候, 拉斐尔·桑托斯
【问题讨论】:
标签: c# swift xamarin.ios kerning