美文网首页
UIMenuController自定义按钮

UIMenuController自定义按钮

作者: 白牛桑 | 来源:发表于2018-01-08 15:08 被阅读17次

/**

 自定义菜单按钮点击方法需要return yes,否则该按钮不会显示

 */

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender

{

    if(action == @selector(replyMenuAction:) || action == @selector(reminderMenuAction:)) return YES;

    return NO;

}

相关文章

网友评论

      本文标题:UIMenuController自定义按钮

      本文链接:https://www.haomeiwen.com/subject/btsbnxtx.html