Forum Xamarin.iOS


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to Add the “Select All” option after long tapping a UITextView in xamarin.ios?

sumitmishrasumitmishra Member ✭✭✭

How to Add the “Select All” option after long tapping a UITextView in xamarin.ios. Its only show Copy, Look Up, Share...
but we want select all option without Editable mode.

Please help/guide to solve this..

Best Answer


  • sumitmishrasumitmishra Member ✭✭✭

    Hello @LandLu
    How to implement this code that you suggested. We have textview in tableview cell in a viewController. Please guide..

  • LandLuLandLu Member, Xamarin Team Xamurai

    @sumitmishra The code above customize a UITextView. Just replace your textview in the cell to this MyTextView.

  • sumitmishrasumitmishra Member ✭✭✭

    Hi @LandLu ,
    We have implemented as you suggested, but its throw compile time error that "CanPerform(Selector action, NSObject withSender) : no suitable method found to override ". Please check screen shot.

  • LandLuLandLu Member, Xamarin Team Xamurai

    @sumitmishra Did you just copy my code to your class? Try to type it yourself, it may be the ide's issue.

  • sumitmishrasumitmishra Member ✭✭✭

    Thank you very much @LandLu . Its work.

Sign In or Register to comment.