You need to change bottomLayoutGuide for your UIViewController. Create a class with the following code:
MapLayoutGuide.h
@interface MapLayoutGuide : NSObject <UILayoutSupport>
-(id)initWithLength:(CGFloat)length;
@end
MapLayoutGuide.m
#import "MapLayoutGuide.h"
@implementation MapLayoutGuide
@synthesize length = _length;
- (id)initWithLength:(CGFloat)length
{
if (self = [super init])
{
_length = length;
}
return self;
}
@end
And then in your UIViewController displaying the map, add the following:
-(id <UILayoutSupport>)bottomLayoutGuide
{
return [[MapLayoutGuide alloc] initWithLength:kMapViewBottomContentInset];
}
kMapViewBottomContentInset - . UITabBar, .
, AutoLayout .