Jump to content

- - - - -

Navigation bar prompt

view-controllers feature-request

  • Please log in to reply
1 reply to this topic

#1 ozie



  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169

Posted 14 April 2013 - 04:29 PM

Sections have a property to set the title for each item, but it would be nice to also have a property to set the "prompt" for the navigation bar
Section.detailViewControllerOptions.title=@"Detail View Title";
Section.newItemDetailViewControllerOptions.title = @"Add New Item View Title";

//Something like 
Section.detailViewControllerOptions.prompt=@"Detail View Prompt";
Section.newItemDetailViewControllerOptions.prompt = @"Add New Prompt";

Currently I am using
- (void)tableViewModel:(SCTableViewModel *)tableModel
detailViewWillPresentForRowAtIndexPath:(NSIndexPath *)indexPath
withDetailTableViewModel:(SCTableViewModel *)detailTableViewModel {
    detailTableViewModel.viewController.navigationItem.prompt = @"my prompt text";
but this sets the prompt for both the Detail View and the Add New View

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.

#2 Tarek


    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 452

Posted 16 April 2013 - 08:22 PM

Thank you very much Greg, we'll add this to our feature requests.

On a separate front, please use section.sectionActions.detailModelWillPresent instead of the detailViewWillPresent delegate method. Delegates are currently supported only for backwards compatibility with STV 2.0, and will most probably be dropped out of STV 4.0. Actions are much simpler to use and a lot less confusing.

Also tagged with one or more of these keywords: view-controllers, feature-request

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users