UItextView crashes when I cancel adding to contacts in popover

I have added phone numbers to my UITextView.

self.textView.dataDetectorTypes = UIDataDetectorTypeAll;

enter image description here

If I just:

  • Choose a phone number
  • Click add to contacts
  • Create new contact
  • Done

Things are good. But if I canceled the add and try to exit this menu, the application will fail.

  • Choose a phone number
  • Click add to contacts
  • Click Outside Popover (Auto Rear)
  • Click another location again (crash)

So ... Application error if I cancel adding a contact in standard management. And it crashes in a private method (- [UITextView _finishHandlingInteraction:] UITextView_LinkInteraction.m: 335).

I tried to find information about this method or some information about the same crash. But this did not help = (

iOS 8.4

Crash Log:

- [MYCustomTextView _finishHandlingInteraction:],/SourceCache/UIKit/UIKit-3347.44/UITextView_LinkInteraction.m:335

* - 'NSInternalInconsistencyException', : '' * : (0x2ad85fef 0x39171c8b 0x2ad85ec5 0x2ba84f17 0x2eab9a4b 0x2e76f2b7 0x2e76f793 0x2e76f735 0x2e76f52d 0x2eac4115 0x2e55806b 0x2e4070f9 0x2e820f9b 0x2e3d0181 0x2e3ce05f 0x2e4054d9 0x2e404ddd 0x2e3dafe5 0x198f2f 0x2e6518fb 0x2e3d99f9 0x2ad4bfaf 0x2ad4b3bf 0x2ad49a25 0x2ac96201 0x2ac96013 0x32472201 0x2e43aa59 0x1afa6b 0x396fdaaf) lib++ abi.dylib: NSException

iOS 9 (13A4293g) betta:

*** - [MYCustomTextView _finishHandlingInteraction:],/BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3486.4/UITextView_LinkInteraction.m:342

* - 'NSInternalInconsistencyException', : '' * : (0x24d69153 0x3659ee0f 0x24d69029 0x25b4862d 0x297c1867 0x297c2397 0x29362041 0x2936267b 0x293625e3 0x29362315 0x29408299 0x29454123 0x297cf597 0x290dff13 0x28f77189 0x294538f3 0x28f39ecb 0x28f37ab1 0x28f75201 0x28f7494b 0x28f469b5 0x1679e3 0x28f4533d 0x24d2c81b 0x24d2c409 0x24d2a74b 0x24c7d229 0x24c7d015 0x2dd25bb9 0x28faca7d 0x17e523 0x36d07873) lib++ abi.dylib: NSException

  • :
    • iOS 7.1 ( iPad) _
    • iOS 8.4 ( iPad) _
    • iOS 8.3 (iPad 4) _
    • iOS 8.3 (iPad mini) _
    • iOS 8.4 (iPad mini 3) _
    • iOS 9 betta (iPad mini) _
+4
2

iOS. . - iOS 9 4. . . . Apple. .

+2

, , , , , . , , - , . , - :

- (void) viewWillDisappear: (BOOL) animated {
  [super viewWillDisappear: animated];
  [self.view.window endEditing: YES]; //force the view to end here
  }
0

All Articles