Change color of translucent black UINavigationBar

Once you know it, it’s fairly simple: self.navigationController.navigationBar.tintColor = [UIColor blueColor]; self.navigationController.navigationBar.alpha = 0.7f; self.navigationController.navigationBar.translucent = YES; The translucent property seems only to determine wether the main view should be visible under the navigation bar, and resizes the view appropiately.

UINavigationBar multi-line title

Set the titleView property of the UINavigationItem. For example, in the view controller’s viewDidLoad method you could do something like: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 480, 44)]; label.backgroundColor = [UIColor clearColor]; label.numberOfLines = 2; label.font = [UIFont boldSystemFontOfSize: 14.0f]; label.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5]; label.textAlignment = UITextAlignmentCenter; label.textColor = [UIColor whiteColor]; label.text = … Read more

Navigation controller top layout guide not honored with custom transition

Managed to fix my issue by adding this line: toViewController.view.frame = [transitionContext finalFrameForViewController:toViewController]; To: – (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext fromVC:(UIViewController *)fromVC toVC:(UIViewController *)toVC fromView:(UIView *)fromView toView:(UIView *)toView { // Add the toView to the container UIView* containerView = [transitionContext containerView]; [containerView addSubview:toView]; [containerView sendSubviewToBack:toView]; // animate toVC.view.frame = [transitionContext finalFrameForViewController:toVC]; NSTimeInterval duration = [self transitionDuration:transitionContext]; [UIView animateWithDuration:duration animations:^{ … Read more

UIPopoverController automatically resizing to max height on pushViewController

This fixed it for me after I had the same issue (coincidently also today): EDIT : As contentSizeForViewInPopover is deprecated in iOS7.0 so use preferredContentSize. Original answer below: In your detailViewController add this: – (void)viewWillAppear:(BOOL)animated { CGSize size = CGSizeMake(320, 480); // size of view in popover self.contentSizeForViewInPopover = size; [super viewWillAppear:animated]; } You also … Read more

IOS7 : UIScrollView offset in UINavigationController

OK so i found the solution, I have set in my controller the property: self.automaticallyAdjustsScrollViewInsets = false I don’t really understand the true benefit of this property though, (or why the default value is true) The only documentation i found was there: https://web.archive.org/web/20160405135605/https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/AppearanceCustomization.html https://developer.apple.com/documentation/uikit/uiviewcontroller/1621372-automaticallyadjustsscrollviewin Update In iOS 11 automaticallyAdjustsScrollViewInsets is deprecated You should now use: … Read more

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