[英]How to change the background color of a custom Collection View cell in swift iOS?
[英]How to compare border color of a cell in collection view (iOS, swift)
我想比較我的單元格邊框的顏色,如下所示:
if(cell.layer.borderColor == UIColor.blackColor().CGColor)
但我得到一個錯誤。
謝謝
采用:
CGColorEqualToColor(cell.layer.borderColor, UIColor.blackColor().CGColor)
你無法與==
運算符兩個CGColor
進行比較
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.