今天碰到一个问题,长按聊天的cell是可以正常显示UIMenuController 如下图。
但是一旦打开了UIActionSheet后 UIMenuController 就无反应了。
如上面我打开了UIActionSheet后不管怎么按都是无法出现UIMenuController。
代码如下 [self becomeFirstResponder]; 是返回yes的,不知道是不是UIActionSheet占用了第一响应者?
[self becomeFirstResponder];
UIMenuItem *copyItem = [[UIMenuItem alloc] initWithTitle:@"复制" action:@selector(copyString:)];
UIMenuItem *sendAgain = [[UIMenuItem alloc] initWithTitle:@"重发" action:@selector(sendAgain:)];
UIMenuItem *earphonePlayItem = [[UIMenuItem alloc] initWithTitle:@"听筒播放" action:@selector(earphonePlay:)];
UIMenuItem *speakerPlayItem = [[UIMenuItem alloc] initWithTitle:@"扬声器播放" action:@selector(speakerPlay:)];
Have you solved it bro? I also encountered the same situation qq: 1217468488