-->

Xamarin.iOS UIApperance setDefaultTextAttributes

2019-05-25 18:22发布

问题:

I'm trying to figure out how to implement following code in Xamarin:

[[UITextField appearanceWhenContainedIn:[UISearchBar class], nil] setDefaultTextAttributes:@{NSForegroundColorAttributeName:[UIColor greenColor]}];

But I cannot find a way to setDefaultTextAttributes on UIApperance class.

回答1:

There are a number of missing UIAppearance features in Xamarin.iOS and in regards to your question, there is a missing API.

  • This is a bug,