开发者

UITextField list? How to achieve similar UI?

开发者 https://www.devze.com 2023-02-14 23:52 出处:网络
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开发者_如何学Go

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?

UITextField list? How to achieve similar UI?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消