I have a mailcomposer in which i have attached a file through coding(hard-coded)..
I need to have a button so that When i press the button.It should ask which file to attach...
My code is shown below in which i am attaching the file hordcoded...
UIImage *img=[UIImage imageNamed:@"Mehmood.jpg"];
NSData *imgData=UIImageJPEGRepresentation(img, 1);
[composer addAttachmentData:imgData mimeType:@"image/jpeg" fileName:@"Mehmood.jpg"];
Even I need to attach any file which i am selecting after button click(not the specific one like png/jpeg
)...
Please help... Thanks in advance