Exemplo n.º 1
0
        public static void SetIcon(this UIBarButtonItem btn, FontIconTemplate template, UIColor color, UIControlState state = UIControlState.Normal)
        {
            var attrs = btn.GetTitleTextAttributes(state);
            var size  = attrs.Font != null ? attrs.Font.PointSize : 12;

            btn.SetIcon(template.FontIcon((float)size), color, state);
        }