IBOutlet is nil inside custom UIView (Using STORYBOARD)

前端 未结 7 1561
忘掉有多难
忘掉有多难 2020-12-25 13:22

I have a custom UIView class. Inside it I have declared an IBOutlet property for UIImageView.

#import 

        
相关标签:
7条回答
  • 2020-12-25 14:10

    initialize them in awakeFromNib:

    - (void)awakeFromNib
    {
        //init code
    }
    
    0 讨论(0)
提交回复
热议问题