title: MKMapCamera pitch-altitude function
body: <p>Неу all. I need some help.
  I'm working with MapKit and of course my camera can go up and down (zoom in and zoom out).</p>
  
  <p>I want to change MKMapCamera pitch while zooming.
  So when the camera is low the pitch will be big (~80) and when camera is high the pitch will be small (0).</p>
  
  <p>Here is the picture, showing what I want to do:</p>
  
  <p><img src="https://i.stack.imgur.com/NIttX.png" alt="enter image description here"></p>
  
  <p>I tried to create function, that will monitor the altitude and automatically change the pitch:</p>
  
  <pre><code>cam_timer = [NSTimer scheduledTimerWithTimeInterval: 0.05 target: self selector: @selector (test) userInfo:nil repeats: YES];
  
  - (void) test
  {
      [debug_lbl_1 setText: [NSString stringWithFormat:@"%f", map.region.span.latitudeDelta]];
  
          map.camera.pitch = 45; // changing pitch
  }
  </code></pre>
  
  <p>But when I accessing camera in that function it stopped moving. I mean...I can't move, zoom or make anything with map if I trying to access camera from that function.</p>
  
  <p>So my question is: how can I make function that will change pitch when altitude (zoom level)) changed? Please, I very need some help =(</p>