UA-17470720-3

Jump to content


Photo
- - - - -

how to show edit button on the navigation bar for detail view?

models view-controllers sections

  • Please log in to reply
4 replies to this topic

#1 Balachandhar

Balachandhar

    Experienced Member

  • STV 3.0 Pro
  • PipPipPipPip
  • 87 posts
Reputation: 21
Excellent

Posted 26 September 2013 - 03:59 AM

Hi All,

 

I am having a list of objects, the list has edit, add button on top but when i select an item from the list then i am getting a detailed screen of an object, here i want to show the edit button, done button. for now i am seeing edit and cancel button.

 

anybody know the way to do this?

 

thanks,

bala

 



#2 Dave Guerin

Dave Guerin

    Forum Master

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 542 posts
  • LocationIreland
Reputation: 135
Popular

Posted 26 September 2013 - 06:20 AM

Hi bala,

 

I'm not quite sure I understand.

 

If you tap the Edit button, do you not get the Done button on your detail view?


Cheers,

Dave

www.dgapps.ie

#3 Balachandhar

Balachandhar

    Experienced Member

  • STV 3.0 Pro
  • PipPipPipPip
  • 87 posts
Reputation: 21
Excellent

Posted 26 September 2013 - 10:40 AM

hi dave,

 

NO, If i tap the item from the table list then i am getting detailed view with cancel and done button. but, i want to show an edit button instead of showing done button. 

 

so, if user select the edit button then i want to allow them to edit the detailed view otherwise only they can view the detailed view.

 

thanks,

bala



#4 Balachandhar

Balachandhar

    Experienced Member

  • STV 3.0 Pro
  • PipPipPipPip
  • 87 posts
Reputation: 21
Excellent

Posted 26 September 2013 - 11:52 AM

thanks dave, 

 

i found a way like this

 

    contactDef.requireEditingModeToEditPropertyValues = YES;

 

thanks

bala



#5 Dave Guerin

Dave Guerin

    Forum Master

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 542 posts
  • LocationIreland
Reputation: 135
Popular

Posted 26 September 2013 - 09:33 PM

AH, yes, now I understand what you mean.

 

Glad you got it sorted.


Cheers,

Dave

www.dgapps.ie





Also tagged with one or more of these keywords: models, view-controllers, sections

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users