0
如何添加reloadRowsAtIndexPaths的持续时间?这是我的代码为reloadRowsAtIndexPaths添加持续时间(swift)
var indexPath1 = NSIndexPath(forRow: 2, inSection: 0)
var indexPath2 = NSIndexPath(forRow: 3, inSection: 0)
var indexPath3 = NSIndexPath(forRow: 4, inSection: 0)
// self.tableView.reloadSections(NSIndexSet(index: 0), withRowAnimation: UITableViewRowAnimation.Fade)
self.tableView.reloadRowsAtIndexPaths([indexPath1,indexPath2,indexPath3], withRowAnimation: .Fade)
尝试使用'NSTimer.schedule ....'或'UIView.animate ...' – Santosh