简体   繁体   中英

insertRowsAtIndexPaths custom animations Swift

My goal is to animate every single inserted cell using the insertRowsAtIndexPaths function.
The only issue is the default animation style isn't exactly what I'm looking for - i need to create a custom one.

I've browsed stack for solutions and found some, but they are written in objC: Can you do custom animations for UITableView Cell Inserts?

I'm looking for a similar swift solution.

If anyone could share, that would be great.

Thank you.

试用以下代码

table.insertRowsAtIndexPaths(index, withRowAnimation:UITableViewRowAnimation(rawValue: 3))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM