UITableView + Core Animation
I would like to build up a table view section into my iOS app just like the Facebook style (with many information in every row, images and buttons, ..).
I also want to include Core Animation effects on every row, like fade out the cell, or customize the graphic interface.
Do you recommend me to use the UITableView class or something else more ‘customizable’?
- CAGradientLayer properties not animating within UIView animation block
- Animate a layer property which simply changes other properties?
- What do the parameters to CGPathAddCurveToPoint mean?
- iOS: Simultaneous scale and 3D rotation animation
- Changing cornerRadius using Core Animation
- How do I achieve a clearly rendered rotated UILabel?
Solutions Collect From Internet About “UITableView + Core Animation”
You should use the regular
UITableView, but custom
UITableView‘s support fading and other kind of animations for adding/removing/reloading cells
NSMutableArray *affectedRows = [NSMutableArray array]; [affectedRows addObject:[NSIndexPath indexPathForRow:0 inSection:0]]; [affectedRows addObject:[NSIndexPath indexPathForRow:1 inSection:0]]; // use whatever corresponds [self.tableView deleteRowsAtIndexPaths:affectedRows withRowAnimation:UITableViewRowAnimationLeft]; [self.tableView insertRowsAtIndexPaths:affectedRows withRowAnimation:UITableViewRowAnimationLeft]; [self.tableView reloadRowsAtIndexPaths:affectedRows withRowAnimation:UITableViewRowAnimationLeft];
Be careful when using these methods, because the numberOfRowsInSection: function gets called again, and if the new result doesn’t match the new number of rows, your app will crash
IE: you have 5 rows, and delete 2, your method must then return 3
- Is there a way to limit iPhone App to only certain models?
- Why calloutAccessoryControlTapped is called for tap on annotation view also?
- Can you develop native iPhone apps in Ruby?
- Auto-Layout: Get UIImageView height to calculate cell height correctly
- Is it possible to set watchpoints on Swift properties?
- how to make UIProgressView on the UITableViewCell change immediately?
- iOS9 does not load insecure resources from a secure page (SSL/HTTPS)
- Change text of an attributed string and retain attributes in Swift
- Getting the URL of picture taken by camera with Photos Framework
- Use iOS 6 Style Segmented Control in iOS 7?
- How to present a modal view controller with custom size in center?
- Import Objective-c framework into Swift framework project
- Dismiss all UIAlertControllers currently presented
- Tab bar, reload every time tab is pressed
- How to update the constant height constraint of a UIView programatically?