現在我的廈門國際銀行有一個標籤和圖像視圖中添加圖像。要顯示的文本很容易理解。但是,如何添加圖像? let slide1:slide = Bundle.main.loadNibNamed("slide", owner: self, options: nil)?.first as! slide
slide1.label.text = "Chicago"
// I have a image
加載NIB我有一個CalendarCell.xib和我波德框架CalendarCell.swift UIView子類。 CalendarCell.swift具有連接到其視圖的插座。在運行時,我得到這個錯誤: Could not load NIB in bundle: 'NSBundle (loaded)' with name 'CalendarCell' 在我podspec文件我創建了一個包資源: