Slide 30
Slide 30 text
BundleΛࢦఆͯ͠ը૾Λઃఆ
override func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
let bundle = Bundle(for: type(of: self))
imageView.image = UIImage(named: "image", in: bundle, compatibleWith: nil)
}
✖ override func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
imageView.image = UIImage(named: "image")
}
✖ override func prepareForInterfaceBuilder() {
super.prepareForInterfaceBuilder()
imageView.image = #imageLiteral(resourceName: "image")
}
ը૾औಘΛநԽ͢Δ߹BundleDIͰ͖ΔΑ͏ʹ͠Α͏