-(IBAction)cut { [self copy]; textPad.text = @""; }
-(IBAction)copy {
NSString *copyString = [[NSString alloc] initWithFormat:@"%@",[textPad text]];
UIPasteboard *pb = [UIPasteboard generalPasteboard];
[pb setString:copyString];
}
-(IBAction)paste {
UIPasteboard *pb = [UIPasteboard generalPasteboard];
textPad.text = [pb string];
}
No comments:
Post a Comment