UIMenuController with custom item not working with UICollectionview

前端 未结 6 1055
长情又很酷
长情又很酷 2021-01-13 02:15

I have added custom menu controller when long press on UICollectionViewCell

    [self becomeFirstResponder];
    UIMenuItem *menuItem = [[UIMenuItem alloc] i         


        
6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-13 02:41

    I've just spent two days trying to figure out the "correct" way of doing this, and barking up the wrong tree with some of the suggestions that are around.

    This article shows the correct way of doing this. I hope that by posting it here someone will be saved a few hours.

    http://dev.glide.me/2013/05/custom-item-in-uimenucontroller-of.html

提交回复
热议问题