tags:

views:

59

answers:

0

I want to display a new image on top of the selected image in the CameraRoll but do not know how to get the coordinates. I am able to display the image though but since my application does not recieve touchesBegan events once the presentModalViewController gets fired i am unable to get the current coordinates. Can anyone help, please?

    - (void)imagePickerController:(UIImagePickerController*)picker    didFinishPickingMediaWithInfo: (NSDictionary*) info

{

if (!bIsCameraSelected)

{
  pImageView.image = [info objectForKey:UIImagePickerControllerOriginalImage];

 /// NEED CURRENT COORDINATES FROM SELECTION HERE ///

  CGRect ImgRect = CGRectMake(84.0f, 107.0f, 72.0f, 72.0f);

  UIImageView *pImage = [[[UIImageView alloc] initWithFrame:ImgRect] autorelease];
  [pImage setImage:[UIImage imageNamed:@"checked.png"]];
  [picker.view addSubview:pImage];
}
else
{
    [picker dismissModalViewControllerAnimated:YES];
}

}