diff options
author | Igor Khmurets <subzero@mapswithme.com> | 2014-08-04 20:10:53 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:23:18 +0300 |
commit | e058c46a903be46f347c8822a933be9ee1ab6a56 (patch) | |
tree | 3499493ebafea13a81e076d81111eb8413c62e4b /iphone/Maps/Classes/ContextViews.mm | |
parent | 2f3df596d9d57f19c49c0f61b98d94bfc9ae604a (diff) |
[ios] UI fixes
Diffstat (limited to 'iphone/Maps/Classes/ContextViews.mm')
-rw-r--r-- | iphone/Maps/Classes/ContextViews.mm | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/iphone/Maps/Classes/ContextViews.mm b/iphone/Maps/Classes/ContextViews.mm index f1a98b4ef1..1a3b63f34a 100644 --- a/iphone/Maps/Classes/ContextViews.mm +++ b/iphone/Maps/Classes/ContextViews.mm @@ -28,3 +28,24 @@ } @end + + +@implementation CopyView + +- (BOOL)canBecomeFirstResponder +{ + return YES; +} + +- (BOOL)canPerformAction:(SEL)action withSender:(id)sender +{ + return action == @selector(copy:); +} + +- (void)copy:(id)sender +{ + [UIPasteboard generalPasteboard].string = self.textToCopy; +} + + +@end
\ No newline at end of file |