UITableViewRowAction 自定義 標題顏色 背景色 圖片

先說下大體思路,先先創建 label 設置 字體和顏色(也可以 是 imageview ) 。然後利用 UIGraphics 繪製成圖片,然後利用 + (UIColor *)colorWithPatternImage:(UIImage *)image; 這個 方法把圖片轉換成顏色, 最後設置 UITableViewRowAction 背景色 就完成了 UIImage *(^GetImageWith
相關文章
相關標籤/搜索