|
JubeatPlus 3.9.11
|
A label that becomes first responder when tapped and offers a Copy menu. More...
#include <CopyableUiLabel.h>


Instance Methods | |
| (instancetype) | - initWithFrame: |
| Makes the label transparent and, crucially, touchable. | |
| (void) | - touchesEnded:withEvent: |
| Takes first responder status and shows the edit menu over the label. | |
| (BOOL) | - canBecomeFirstResponder |
| Always YES, so the edit menu can appear. | |
| (BOOL) | - canPerformAction:withSender: |
Allows copy: and defers every other action to the superclass. | |
| (void) | - copy: |
| Puts the label's text on the general pasteboard. | |
A label that becomes first responder when tapped and offers a Copy menu.
The class declares no ivars and no properties. All five members are overrides.
| - (BOOL) canBecomeFirstResponder |
Always YES, so the edit menu can appear.
| - (BOOL) canPerformAction: | (SEL) | action | |
| withSender: | (nullable id) | sender |
Allows copy: and defers every other action to the superclass.
| action | The action being offered. |
| sender | The menu. |
| - (void) copy: | (nullable id) | sender |
Puts the label's text on the general pasteboard.
| sender | The menu item. Unused. |
| - (instancetype) initWithFrame: | (CGRect) | frame |
Makes the label transparent and, crucially, touchable.
UILabel has user interaction off by default, so without this nothing else here would ever run.
| frame | The label's frame, passed straight to the superclass. |
| - (void) touchesEnded: | (NSSet *) | touches | |
| withEvent: | (nullable UIEvent *) | event |
Takes first responder status and shows the edit menu over the label.
| touches | The touches, forwarded to the superclass. |
| event | The event, forwarded to the superclass. |