UITextView cut problem !

Posted by Mc.Lover on Stack Overflow See other posts from Stack Overflow or by Mc.Lover
Published on 2010-05-02T11:17:22Z Indexed on 2010/05/02 11:27 UTC
Read the original article Hit count: 250

Filed under:
|

Hi , i have problem with cut some text from UITextView , i idon't understand how can implement Cut , for example copy or paste it's like this :

 -(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];
    }

but about cut ! thank you ,

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about uitextview