阅读背景:

如何在UICollection补充视图中使用UIButton?

来源:互联网 

I am attempting to place a UIButton in a UICollectionView supplementary view (footer). I have connected the UIButton using storyboards to a subclass of UICollectionViewCell and can change it's properties programmatically including the background image. However, when I wire up the touch up inside event of the button to a method, it does not fire. In fact, the button does not even appear to be responding visually to the user's touch. In troubleshooting, I attempted to add a UIButton to the collection view's header and see identical behavior. Adding the button to an unrelated view produces interaction effects when pressed.I am attempting to place a UIButton in a UIColl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: