Written by:S WhiteMon, 15 Mar 2010 19:55:00 GMT
Very simple way of creating rounded borders on a UITextView in MonoTouch.
Before the rounded corners are applied the UITextView looks out of place on the UI:
After rounded corners are applied it makes all the difference:
This can easily be applied by using CornerRadius:
UITextView addTipText = new UITextView(new System.Drawing.RectangleF(30, 70, 260, 80)); addTipText.BackgroundColor = UIColor.White; addTipText.Hidden = true; addTipText.Layer.CornerRadius = 8; addTipText.Font = UIFont.FromName("Helvetica", 14); addTipText.ScrollEnabled = true; addView.AddSubview(addTipText);
0 comment(s) so far...