Question

I'm having two issues with a interstitial class hierarchy I'm writing at the moment.

There's a base class for my interstitials:

  • Base class: JSBaseCustomizeableIntersitialView
  • Child class1: JSInviteFriendsCustomizableIntersititialView
  • Child class2: JSBadgeCustomizableIntersititialView

The base class holds the IBOutlets for common UI for every interstitial I'm going to be developing: title, description, a "flavor" image, and ok/cancel button.

Each subclass has its own View in a xib file, which I'm trying to connect to the outlets declared on the base class.

Any idea how to do this? Here's a graphical example of what I'm trying to achieve:

enter image description here

(open image in full screen mode here)

Was it helpful?

Solution

Within Interface Builder, select the Identity Inspector from the Utilities pane. In the Custom Class section, fill out your required subclass there.

Then select the Connections Inspector and hook-up your required outlets.

Repeat this for each UIView you have.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top