3

I am using MWPhotoBrowser To display image and its Caption Text(Image name,Image date, Image Description). i added edit button in Navigation Bar when i Click edit button that's to be showing one View in that view i will change Image details.

i want To add View to Change The Caption Text in MWPhotoBrowser View. I showed Image Detail(Name,Date,Description) View when Picked up image in Gallery /Camera. But is it Possible to add a View in MWPhotoBrowser?

if possible Please can any one help Me how can i create a new View

Mallikarjuna Reddy
  • 1,212
  • 2
  • 20
  • 33
Vijay
  • 579
  • 1
  • 11
  • 22
  • Use `MWPhotoBrowser` as navigation controller, and push new view controller to it when u want to hav extra view.. – vishy Mar 15 '13 at 06:28
  • Oh ok but how can i parsing data to that View Controller – Vijay Mar 15 '13 at 07:17
  • Pass complete `MWPhoto` object to the new view.. as it just points, just add the edits to it, inturn will reflect in the original one.. – vishy Mar 15 '13 at 07:25
  • please give some sample code for Pass Complete MWPhoto object to New View – Vijay Mar 15 '13 at 08:37

1 Answers1

1

Here is the sample code for the MWPhotoBrowser app with option for editing caption.

This suits your requirements, will work for you.

Thanks.

Community
  • 1
  • 1
vishy
  • 3,241
  • 1
  • 20
  • 25
  • here i can edit the details but if i changed the text i didn't update in MWPhotoBrowserView – Vijay Mar 16 '13 at 10:57
  • means, what u hav changed..? – vishy Mar 18 '13 at 03:59
  • i did changes in caption text in Edit View if i pressed save button. it didn't update on caption view in photobrowserview – Vijay Mar 18 '13 at 05:41
  • is it not happening in sample code, or which u implemented..? have u checked the code in save button method.? – vishy Mar 18 '13 at 06:16
  • i implemented in my own code this is save button code - (IBAction)saveCaption:(id)sender{ NSString *temp_captiontext=[NSString stringWithFormat:@"%@,%@,\n%@",self.edit_name.text,self.edit_date.text,self.edit_description.text]; _photoObj.caption = temp_captiontext; [self.navigationController popViewControllerAnimated:YES]; } – Vijay Mar 18 '13 at 07:12
  • in your `MWPhotoBrowser` class/view u need to reload in its `viewWillAppear` to reflect the data.. this is done in sample code.. check in ur implementation.. – vishy Mar 18 '13 at 08:25
  • ya ur are correct i missed reload data in viewwillAppear thank you so much now its work great – Vijay Mar 18 '13 at 08:39