I came across this UI in the Geico app. How is this "grouped" UITextField style achieved (Street, City, State)? Is it just done by explicitly restyling 3 UITextField elements or is ther开发者_如何学Goe a control I am missing to handle this?
Note: I am using MonoTouch.
I think its done using the UITableView element.
You could easily enough do something like this by putting the text fields inside a UIView and setting view.clipsToBounds
to YES, view.layer.borderColor
to an appropriate grey, view.layer.borderWidth
to an appropriate width, and view.layer.cornerRadius
to an appropriate radius. Don't forget to #import <QuartzCore/QuartzCore.h>
to be able to access the layer's properties.
精彩评论