What is the IGLabel?
What is Tappable Content?
Tappable content is series of characters, words or sentences that allow interaction by tapping them. The IGLabel allows this interaction by setting an attribute over a matching regular expression or specific text location. When tappable content is tapped using the IGLabel, the labelTap:tapText:tapValue IGLabelDelegate method is called. This method provides the label tapped, the text receiving the tap and the value applied to the text through the styling attribute.
How Do I Create Tappable Content?
The first step in creating tappable content is to set the text property on an instance of the IGLabel.
Next create an NSDictionary containing the tap attribute. Any NSObject can be used for the tap attribute.
Finally, add the attributes dictionary to the IGLabel.
Once the attribute has been added to the IGLabel, the text “tappable content” can be tapped.