If you want to a fade animation, this approach works.
CATransition* transition = [CATransition animation];
transition.duration = 0.3;
transition.type = kCATransitionFade;
transition.subtype = kCATransitionFromTop;
[self.navigationController.view.layer addAnimation:transition forKey:kCATransition];
[self.navigationController pushViewController:gridController animated:NO];
Related Contents:
- How to create a UIView bounce animation?
- UITableView row animation duration and completion callback
- How to animate the change of image in an UIImageView?
- UIView shake animation
- Animate UILabel text between two numbers?
- What is the best way to deal with the NSDateFormatter locale “feechur”?
- How to determine the current iPhone/device model?
- Detecting which UIButton was pressed in a UITableView
- How to navigate through textfields (Next / Done Buttons)
- How to determine the content size of a UIWebView?
- How can I get current location from user in iOS
- Any way to pre populate core data?
- iPhone Keyboard Covers UITextField
- How to validate an url on the iPhone
- UIScrollView horizontal paging like Mobile Safari tabs
- Reading ePub format
- @property retain, assign, copy, nonatomic in Objective-C
- Round two corners in UIView
- NSURLConnection and Basic HTTP Authentication in iOS
- How do I create launch images for iPhone 6 / 6 Plus Landscape Only Apps?
- How to set the width of a cell in a UITableView in grouped style
- Detecting Color of iPhone/iPad/iPod touch?
- Change Default Scrolling Behavior of UITableView Section Header
- How to detect iphone is on silent mode
- didFailWithError: Error Domain=kCLErrorDomain Code=0 “The operation couldn’t be completed. (kCLErrorDomain error 0.)”
- Drawing UIBezierPath on code generated UIView
- iOS: Keep an app running like a service
- “From View Controller” disappears using UIViewControllerContextTransitioning
- How can I detect the touch event of an UIImageView?
- How to crop UIImage on oval shape or circle shape?
- Is it possible to reset the privacy settings in iOS?
- Change the UITableViewCell Height According to Amount of Text
- Restrict to certain iOS target devices for App Store submission
- Simple and clean way to convert JSON string to Object in Swift
- How to get UIKeyboard size with iOS
- UIPopoverPresentationController on iPhone doesn’t produce popover
- ‘Receiver () has no segue with identifier ‘addSegue’
- Instead of push segue how to replace view controller (or remove from navigation stack)?
- Check if a UIAlertView is showing
- Screenshot in Swift iOS?
- Differences between UDID and UUID [duplicate]
- You are not authorised to use this service iTunes app upload error [closed]
- iPhone In-App Purchase Store Kit error -1003 “Cannot connect to iTunes Store”
- Synchronous URL request on Swift 2
- How to check if a file exists in Documents folder?
- How can I delay a method call for 1 second?
- How to remove an iOS app from the App Store
- How can I add CGPoint objects to an NSArray the easy way?
- Handling Touch Event in UILabel and hooking it up to an IBAction
- iOS Autolayout: two buttons of equal width, side by side