Have a reloadData for a UITableView animate when changing

I have a UITableView that has two modes. When we switch between the modes I have a different number of sections and cells per section. Ideally, it would do some cool animation when the table grows or shrinks. Here is the code I tried, but it doesn’t do anything: CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil … Read more

How to get the screen width and height in iOS?

How can one get the dimensions of the screen in iOS? Currently, I use: lCurrentWidth = self.view.frame.size.width; lCurrentHeight = self.view.frame.size.height; in viewWillAppear: and willAnimateRotationToInterfaceOrientation:duration: The first time I get the entire screen size. The second time i get the screen minus the nav bar. 18 s 18 How can one get the dimensions of the … Read more