#define DeviceVersion [[UIDevice currentDevice].systemVersion floatValue]
if (DeviceVersion >= 9.0)
{
self.mapView.showsScale = YES;
}