Xamarin.iOS UIApperance setDefaultTextAttributes

2019-05-25 17:32发布

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条回答
▲ chillily
2楼-- · 2019-05-25 18:26

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,
查看更多
登录 后发表回答