Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6731763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:34:03+00:00 2026-05-26T10:34:03+00:00

I have a main navigationController controlled on the app’s delegate and this navigationController contains

  • 0

I have a main navigationController controlled on the app’s delegate and this navigationController contains a RootViewController.

Inside this view controller I have defined a UISegmentedControl that is assigned to the toolbar, using something like:

[self.navigationController.toolbar addSubview:segmentedControl];

this segmentedControl has 3 segments, each one pushing a viewController.

The problem now is this: I want to show a view that will contain an iAd or AdMob ad and this view must be always be visible independently of which segmented is pushed by the segmentedControl.

Is it possible to add a view that is somehow on front of the segmented control and is not affected by the controls it pushes on screen? thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:34:04+00:00Added an answer on May 26, 2026 at 10:34 am

    Another option would be to not use a NavigationController – don’t navigate – make the toolbar and the ad view space stable and swap out the contents.

    That option would have a standard UIViewController with a UIToolbar at the top containing the segment control. Below that would be an addView and below that would be a content view where you could swap out views or layers based on the segment control selection.

    That access pattern might not be appropriate for your app and data patterns but it does have the benefit of not navigating/pushing a completely new viewController.

    From the UIView Programming Guide:

    http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/CreatingViews/CreatingViews.html

    … transitionFromView:toView:duration:options:completion: methods to
    swap out entire sets of views for new ones.

    http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/clm/UIView/transitionFromView:toView:duration:options:completion:

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I have in my app a modal view controller which when a certain
I have a main asp.net app, which is written in asp.net 1.1. Runnning underneath
I have a main canvas 'blackboard' in a panel, this canvas has itself several
I have my main GUI thread, and a second thread running inside it's own
Im writing an app that has a navigation controller as it's main menu system
I have a list of websites in a plist, when the app loads this
I am sketching out the workflow of an app where you have a main
In my App I have an UIViewController, that pushed by another ViewController's navigation controller.
Sorry for the newbie question. I have a UITabBar in my main window view
So in my app, I have a UITableView , and in the navigation controller

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.