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

  • SEARCH
  • Home
  • 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 8818557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:08:08+00:00 2026-06-14T05:08:08+00:00

In interface builder my tab bar shows up, but it won’t show up in

  • 0

In interface builder my tab bar shows up, but it won’t show up in my simulator. Ive tried repositioning it and messing around with the stuff in interface builder but its still not showing up. Why is this?
Here is the coding

#import
#import

@interface mapview : UIViewController {

 MKMapView *mapView; 


}


-(IBAction)setMap:(id)sender;

-(IBAction)pushBack;

-(IBAction)findmyass:(id)sender;








@end

#import "mapview.h"
#import "NewClass.h"


@implementation mapview




-(void)viewDidLoad {
[super viewDidLoad];

mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];  
mapView.delegate=self;  

[self.view addSubview:mapView];  
[NSThread detachNewThreadSelector:@selector(displayMap) toTarget:self withObject:nil];  



[mapView setMapType:MKMapTypeStandard];
[mapView setZoomEnabled:YES];
[mapView setScrollEnabled:YES];

MKCoordinateRegion region = { {0.0, 0.0 }, {0.0, 0.0 } };
region.center.latitude = 39.956907;
region.center.longitude = -75.610229;
region.span.longitudeDelta = 0.01f;
region.span.latitudeDelta = 0.01f;
[mapView setRegion:region animated:YES];


NewClass *ann = [[NewClass alloc] init];
ann.title = @"Vigil Location of Chester County ";
ann.subtitle = @"8 S. Wayne St. West Chester, PA 19382";
ann.coordinate = region.center;
[mapView addAnnotation:ann];

-(void)displayMap {  
MKCoordinateRegion region;  
MKCoordinateSpan span;  
span.latitudeDelta=0.2;  
span.longitudeDelta=0.2;  

CLLocationCoordinate2D location;  
location.latitude = -35;  
location.longitude = 146.2381;  
region.span=span;  
region.center=location;  

[mapView setRegion:region animated:TRUE];  
[mapView regionThatFits:region];  
}  

- (void)dealloc {  
[mapView release];  
[super dealloc];  
}  




/*
// Implement viewDidLoad to do additional setup after loading the view, typically from a        
- (void)viewDidLoad {
[super viewDidLoad];
}
*/

/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:    (UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];

// Release any cached data, images, etc that aren't in use.
 }

 - (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
 }






-(IBAction)pushBack {

[self dismissModalViewControllerAnimated:YES];
 }

 -(IBAction)findmyass:(id)sender {

mapView.showsUserLocation = YES;

 } 

 @end
  • 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-06-14T05:08:09+00:00Added an answer on June 14, 2026 at 5:08 am

    I wonder if your mapView is covering over the tab bar since you are initializing the mapView with the same frame as your entire view (self.view.bounds).

    If that’s the issue, try

    CGRect frame = self.view.bounds;
    frame.size.height = frame.size.height - 40;
    mapView = [[MKMapView alloc] initWithFrame:frame]; 
    

    instead of

    mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];  
    

    That should tell you if that was your problem. If so, you should probably get a reference to the tab bar and subtract its height, rather than the hard coded “40”.

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

Sidebar

Related Questions

In interface builder I select the Tab Bar Controller item. The inspector shows me
I have a Tab Bar Controller created in Interface Builder Within the Tab Bar
I need to present a modal tab bar controller using interface builder. I'd like
I have a tab bar iPhone application with 4 tabs. In the Interface Builder
(By the way I develop without Interface Builder) If you have a tab bar
I have setup tab bar controller using interface builder, and each tab bar item
How do you make a tab bar application from scratch, using Interface Builder? Is
I'm using a Tab Bar Controller in Interface Builder with 3 navigation controllers. IB
When I create UITextField inside Interface Builder, I can access Events tab for it,
In interface builder and finder, there are windows with a status bar on the

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.