objective-c - UIMenuController无法显示和UIActionSheet冲突
淡淡烟草味
淡淡烟草味 2017-05-02 09:33:17
0
1
855

今天碰到一个问题,长按聊天的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:)];
淡淡烟草味
淡淡烟草味

reply all(1)
洪涛

Have you solved it bro? I also encountered the same situation qq: 1217468488

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template