在interface builder中设置UIView的borderColor和背景图片
update: 现在可以用https://github.com/shaojiankui/iOS-Categories
如下效果:
头像有borderColor,而类型是CGColorRef
,在IB中没有这个类型,所以无法设置,需要设置cell的背景,也无法直接设置。所以扩展了Calayer:
CALayer+UIColor.h
CALayer+UIColor.m
这样只需要在IB中设置:
update: 现在可以用https://github.com/shaojiankui/iOS-Categories
如下效果:
头像有borderColor,而类型是CGColorRef
,在IB中没有这个类型,所以无法设置,需要设置cell的背景,也无法直接设置。所以扩展了Calayer:
CALayer+UIColor.h
CALayer+UIColor.m
这样只需要在IB中设置: