我无法在Xamarin中处理以下任务。
我正在尝试将目标-c代码转换为Xamarin,如下所示,但我收到错误。
以下是 Objective-C 代码:
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor whiteColor];
pageControl.currentPageIndicatorTintColor = [UIColor redColor];
这是我在 Xamarin.iOS
中的尝试答案 0 :(得分:1)
UIPageControl.Appearance.PageIndicatorTintColor = UIColor.White;
UIPageControl.Appearance.CurrentPageIndicatorTintColor = UIColor.Red;