Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "QuantumExt.h"
- @implementation QuantumExt
- - (void)clipboard_set_text_mobile:(NSString*)_text {
- UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
- pasteboard.string = _text;
- }
- - (NSString *)clipboard_get_text_mobile{
- UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
- NSString *string = pasteboard.string;
- return string;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement