问题描述:

I created a custom notification view (UIView Subclass) in a XIB file. However, I want to have multple types (i.e. one would have one UILabel, another would have 2 UILabels for Title and Subtitle, etc.)

I do this a lot in UITableViewCells using prototypes and cell identifiers, and was wondering if it is possible to do this in one XIB file, and just call the actual view I want to use for the appropriate notification type.

Here is a screenshot of the XIB file I have so you can see what I mean:

相关阅读:
Top