UIButton in a UITableView header ignores most touches

前端 未结 9 2502
盖世英雄少女心
盖世英雄少女心 2020-12-28 18:58

I\'ve got a button that I\'m adding as a subview of a table view\'s tableHeaderView. The button appears fine, and tap-and-holding on it works intermittently - for the most p

9条回答
  •  -上瘾入骨i
    2020-12-28 19:24

    I completely disagree with Wisequark -- there's absolutely nothing wrong with putting a button in the tableHeaderView, and including one would not risk your app being rejected from the app store. The tableHeaderView is designed to be an arbitrary view containing whatever elements you choose.

    As far as your issue, it could be that you've got a view obscuring your button, or, it may simply be a bug that should be reported to Apple.

提交回复
热议问题