UISegmentedControl在ios7中无法正常显示单点触控

时间:2013-10-07 06:23:47

标签: xamarin.ios

我在ios 7中使用UISegmentedControl的以下代码,但它看起来不正确。

代码:

ShareWithFriendSegment = new UISegmentedControl (new RectangleF (movingXCordinate,
                                                                 movingYCordinate,
                                                                 228,
                                                                 33));
ShareWithFriendSegment.ControlStyle = UISegmentedControlStyle.Bar;

ShareWithFriendSegment.TintColor = StyleHelper.Colors.Blue;
ShareWithFriendSegment.BackgroundColor = StyleHelper.Colors.Clear;
ShareWithFriendSegment.InsertSegment (StyleHelper.Images.ShareWithMeON, 1, false);
ShareWithFriendSegment.InsertSegment (StyleHelper.Images.ShareWithFriendsOFF, 2, false);
ShareWithFriendSegment.InsertSegment (StyleHelper.Images.ShareWithEveryoneOFF, 3, false);
ShareWithFriendSegment.SelectedSegment = 0;

Screenshot for UISegmentControl

0 个答案:

没有答案
相关问题