iOS Bug

Refresh Bug :

Bug: 添加完数据后一次刷新table,引发多次footRefresh

for battle in arr {

self.battleArr?.append(battle)

}

self.tableView.reloadData()


无错代码: 每添加一条数据就刷新一次table

for battle in arr {

self.battleArr?.append(battle)

self.tableView.reloadData()

}


Button在UIView动画中无法响应点击事件:

options设置为allowUserInteraction

UIView.animateKeyframes(withDuration:3, delay:0, options:UIViewKeyframeAnimationOptions.allowUserInteraction, animations: {

self.flowArrow.y+=30

})

你可能感兴趣的:(iOS Bug)