• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
uitabbar translucency and hiding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

uitabbar translucency and hiding


  • Subject: uitabbar translucency and hiding
  • From: Torsten Curdt <email@hidden>
  • Date: Sun, 21 Aug 2016 01:29:23 +0200

I have an app with UITabBar und UINavigationBar(s). All are
non-translucent. So the content area of the view controllers is in between
the two. Now I would like to hide the UITabBar (on action). One would think
this would be enough:

 if let tabBar = self.tabBarController?.tabBar {
      tabBar.hidden = !visible
  }

but apparently the content area stays the same. The UITabBar hides and
leaves a big nothing behind. How can that be? What is in need to be updated?

            self.view.setNeedsLayout()
            self.view.setNeedsUpdateConstraints()
            self.view.setNeedsDisplay()

Of the current view controller? or the navigation controller?

When you look at StackOverflow or Search people are throwing

  extendedLayoutIncludesOpaqueBars
  edgesForExtendedLayout
  layout guides

into the mix but a clear explanation or working solution seems nowhere to
be found.

Could anyone please enlighten me? I've already spent too much with trial
and error. Super frustrating.

cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: uitabbar translucency and hiding
      • From: Scott Ahten <email@hidden>
    • Re: uitabbar translucency and hiding
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: GetNumEventsInQueue() for Cocoa
  • Next by Date: NSResizableWindowMask for borderless windows
  • Previous by thread: Re: GetNumEventsInQueue() for Cocoa
  • Next by thread: Re: uitabbar translucency and hiding
  • Index(es):
    • Date
    • Thread