开发者

How can I make a UISearchDisplayController tableview rounded?

开发者 https://www.devze.com 2023-03-30 16:55 出处:网络
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 a

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

精彩评论

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