Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6797149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:34:24+00:00 2026-05-26T18:34:24+00:00

My UITextViews crash the app upon text selection and deletion. Cut, copy, and paste

  • 0

My UITextViews crash the app upon text selection and deletion.

enter image description here

Cut, copy, and paste seem to work fine. The only error in the log is:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIMenuController view]: unrecognized selector sent to instance 0xff85ac0'

It is a normal UITextView, and the UIMenuController is untouched and uncustomized. Any ideas?

Happens with iOS 4.3 and 5.0 in simulator and on device.

No more information with zombies enabled, except for a stack trace that I’ll need to interpret.. The new Xcode isn’t nice about this:

(0x356338bf 0x360ae1e5 0x35636acb 0x35635945 0x35590680 0x37c63925 0x3816b 0x1a557 0x3559222b 0x37a869a7 0x3559222b 0x31671943 0x35607a63 0x356076c9 0x3560629f 0x355894dd 0x355893a5 0x32073fed 0x3794d743 0x29d1 0x2990)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:34:25+00:00Added an answer on May 26, 2026 at 6:34 pm

    The cause was undocumented (correct me if you find documentation and I’ll update this answer) behavior from UITextView and UITextField with their default use of UIMenuController. The “Delete” option is added if your UIText*Delegate implements delete:. When “Delete” is selected from the menu, your field’s delegate will then be called with a delete: message. I discovered this by adding an exception breakpoint in the breakpoint listing pane, which gave me the properly symbolicated stack trace that the original exception did not. The crash was caused because I was using delete:(id)sender to service bar button items in a way that required use of the sender. I fixed it by renaming delete: to deletePart:. The user can still delete text by selecting “Cut”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making an iPad app. In the app I have multiple UITextViews. I've already
I'm writing a universal iOS app that a text entry component to it. When
I have some xibs with all sorts of text controls (UITextFields, UITextViews). Since the
I have some text that needs to be displayed in my app. The text
I have multiple UITextViews with corresponding .txt files. I'm reading them with NSString's stringWithContentsOfFile
I have about twenty UITextViews and corresponding .txt files. What I want is to
I'm adding some UITextFields, UITextViews and UIImageViews as subviews to a UITableCell. When I'm
I have some text in a UITextView, that I would like to have show
I have 4 editable uitextviews, user can set its font font color etc. Now
I'm having a problem setting the font for UILabels and UITextViews with Interface Builder.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.