NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
The methods declared by the NIAttributedLabelDelegate protocol allow the adopting delegate to respond to messages from the NIAttributedLabel class and thus respond to selections.
Tasks | |
Managing Selections | |
(void) | - attributedLabel:didSelectTextCheckingResult:atPoint: |
(BOOL) | - attributedLabel:shouldPresentActionSheet:withTextCheckingResult:atPoint: |
Informs the receiver that a data detector result has been selected.
attributedLabel | An attributed label informing the receiver of the selection. |
result | The data detector result that was selected. |
point | The point within attributedLabel where the result was tapped. |
Asks the receiver whether an action sheet should be displayed at the given point.
If this method is not implemented by the receiver then actionSheet
will always be displayed.
actionSheet
will be populated with actions that match the data type that was selected. For example, a link will have the actions "Open in Safari" and "Copy URL". A phone number will have "Call" and "Copy Phone Number".
attributedLabel | An attributed label asking the delegate whether to display the action sheet. |
actionSheet | The action sheet that will be displayed if YES is returned. |
result | The data detector result that was selected. |
point | The point within attributedLabel where the result was tapped. |
actionSheet
should be displayed. NO if actionSheet
should not be displayed.