animation - Animate show of UITableView HeaderView when button pressed (swift) -
I have created a UIView "headerView" that works as tableHeaderView in my UITableView.
I is basically hidden and when a button is pressed, it slides from the back of the navigation bar to the screen, as well as suppresses the TableView.
override func viewWillAppear (animated: boole) {super .viewWillAppear (animated) self.resetShowGroups ()} personal function resetShowGroups () {var topFrame = self.headerView.frame topFrame.origin.y - = topFrame.size.height self.headerView.frame = topFrame self.tableView.tableHeaderView = blue} To set the table zero initially to zero the hearerview.
Display 0.0, Options: .CurveEaseOut, Animation: {if (self.showGroups) {self.tableView.tableHeaderView = self.headerVi Ew} else {self.resetShowGroups ()} self.showGroups =! Self.showGroups}, complete: {println This code is nearly as close as I can get it looks fine, but because this slide disappears before hiding, when He's blue, so this kind of It's been a long time and I've finished my Google's skill.
Anyone's appreciation indicator.
Thank you. /p>
I have been able to fix my problem.
Instead of the TableHeaderView in UITableViewController Animated I have created a UIViewController and placed my SlideView in both UITableView and UIViewController's UIView.
I can animate my SlideView of UITableView independently, on screen and off when required.
Comments
Post a Comment