I create a xib
file from New file -> iOS -> User Interface -> View
, and add a Collection View Cell
.
I create a header and .m file
from New file -> iOS -> Cocoa Touch -> Objective-C class
. and set the UICollectionViewCell
to Subclass
.
I want to connect the imageView
and label
to header file
for IBOutlet
, but it has no any behavior.
Like the following picture.
Why this condition happened ? Did I missing something ?
First you have to select the View and add the custom class like this: