开发者

How can I make a UISearchDisplayController tableview rounded?

I have a UISearchDisplayController that I've added in IB. How c开发者_如何学Can I make its tableview grouped with rounded corners?


Not sure what is the exact view you want to round but you can round any UIView object by doing

#import <QuartzCore/QuartzCore.h>
yourView.layer.cornerRadius = 5;

Now simply outlet your view in IB and you should be done.

Original post found on stackoverflow.


Seems like I can't unless I subclass it and change the tableview to the grouped type.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜