The cut / copy / paste function stopped working in my iOS application

UPDATE: cut / copy / paste is disabled in my application.

I got confused with my iOS application when developing for iPhone devices. A flow similar to the code below

[self navigationController] pushViewController:chooseDeviceView animated:YES]; [chooseDeviceView release]; [numberTextField setText:@""]; 

Changes are seen and things "work correctly." The problem is that after this, my application does not have the cut / copy / paste function.

I don’t know how to start debugging the problem. Does he allow someone to call?

+4
source share
2 answers

This was a very difficult question for a beginner. Finally, the problem was a bit related to the status message in my iPhone app

+2
source

Add this to your new viewController:

 - (BOOL)canBecomeFirstResponder { return YES; } 

It should solve your problem.

0
source

Source: https://habr.com/ru/post/1438444/


All Articles