title: NSLog not executing
body: <p>I made a test app for taking photos using a camera button. I'm testing on a simulator, so i cannot take snapshots. But i have created an IBAction method which when called, allows the user to select a pic from the photo library. 
  This is the method:-</p>
  
  <pre><code>   - (IBAction)takePicture:(id)sender {
              NSLog(@"Camera button tapped");
             UIImagePickerController *imagePicker= [[UIImagePickerController alloc] init];
                if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])   {
                    NSLog(@"Yes. The Camera is available");
                    [imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
  
                 }
                 else{
                   NSLog(@"The Camera isn't available. Try thru the Photo Library");
                  [imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary];
                 }
              imagePicker.allowsEditing=YES;
              [imagePicker setDelegate:self];
  
              NSLog(@"Presenting Modal Controller");
              [self presentViewController:imagePicker animated:YES completion:NULL];
  
           }
  </code></pre>
  
  <p>In the above scenario, when the method is called (that is when i tap the camera bar button item),the console does not log <strong>Camera button tapped</strong> message as well as <strong>Presenting Modal Controller</strong> message.All the other appropriate NSLog messages are being logged as they should be.
   I don't understand how come the runtime not execute these NSLog lines.
  There's a similar problem in <strong>-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info</strong> that i face.
  Here's the implementation—</p>
  
  <pre><code>     -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
             NSLog(@"imagePicker called");
             NSString *oldKey= _item.imageKey;
             if (oldKey) {
                NSLog(@"Deleting image having key- %@",oldKey);
                [[BNRImageStore sharedStore] deleteImageForKey:oldKey];
             }
  
            UIImage *image= [info objectForKey:UIImagePickerControllerEditedImage];
  
            CFUUIDRef newUniqueID= CFUUIDCreate(kCFAllocatorDefault);
            CFStringRef newUniqueIDString= CFUUIDCreateString(kCFAllocatorDefault, newUniqueID);
  
            //Use that uniqueID to set our item's imageKey
            NSString *key= (__bridge NSString *)newUniqueIDString;
            _item.imageKey=key;
  
            //Store image in the BNRImageStore with this key
            NSLog(@"putting %@ in dictionary table",_item.imageKey);
            [[BNRImageStore sharedStore] setImage:image forKey:_item.imageKey];
  
            //Releasing Core-Foundation objects
             CFRelease(newUniqueIDString);
             CFRelease(newUniqueID);
  
             [imageView setImage:image];
             NSLog(@"Dismissing Modal Controller");
             [self dismissViewControllerAnimated:YES completion:NULL];
     }
  </code></pre>
  
  <p>Here. the NSLog messages— <strong>imagePicker called</strong> and in the third last line— <strong>Dismissing Modal Controller</strong> are not showing up in the console. Again the runtime doesnt process these NSLog lines.</p>
  
  <p>Am i assuming something wrong, because this behavior is so very weird. What's happening?</p>