Unable to get presentViewController to work

If ViewController is the root view controller, it can’t present a modal view controller from within its own viewDidLoad, because at that point it doesn’t have information like the screen size. If other view controllers have already displayed, this will work. If the root view controller is a UINavigationController, you will see a view sliding … Read more

Showing pushviewcontroller animation look like presentModalViewController

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];

Present modal view controller in half size parent controller

You can use a UIPresentationController to achieve this. For this you let the presenting ViewController implement the UIViewControllerTransitioningDelegate and return your PresentationController for the half sized presentation: func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? { return HalfSizePresentationController(presentedViewController: presented, presenting: presentingViewController) } When presenting you set the presentation style to .Custom and set … Read more

iOS 7 Translucent Modal View Controller

With the release of iOS 8.0, there is no need for getting an image and blurring it anymore. As Andrew Plummer pointed out, you can use UIVisualEffectView with UIBlurEffect. UIViewController * contributeViewController = [[UIViewController alloc] init]; UIBlurEffect * blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView *beView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; beView.frame = self.view.bounds; contributeViewController.view.frame = self.view.bounds; contributeViewController.view.backgroundColor … Read more

presentViewController and displaying navigation bar

It is true that if you present a view controller modally on the iPhone, it will always be presented full screen no matter how you present it on the top view controller of a navigation controller or any other way around. But you can always show the navigation bar with the following workaround way: Rather … Read more

iOS: Modal ViewController with transparent background

For those trying to get this to work in iOS 8, the “Apple-approved” way to display a transparent modal view controller is by setting modalPresentationStyle on the presented controller to UIModalPresentationOverCurrentContext. This can be done in code, or by setting the properties of the segue in the storyboard. From the UIViewController documentation: UIModalPresentationOverCurrentContext A presentation … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)