Welcome, Guest
Username Password: Remember me

Title of 'Add' modal view controller
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Title of 'Add' modal view controller

Title of 'Add' modal view controller 1 year, 5 months ago #1

Hi,

I wonder how to set the (navigation item) title of the modal view controller which appears after tapping the addButtonItem for a SCArrayOfObjectsSection? There doesn't seem to be a 'title' property for SCArrayOfObjectsSection.

Do I really have to implemented a delegate method and set the title there?

Thanks,
Patrick
  • Patrick
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 3

Re: Title of 'Add' modal view controller 1 year, 5 months ago #2

Hi Patrick,

You can set the detail view controller's title in the SCTableViewModelDelegate method called "tableViewModel:detailViewWillAppearForSectionAtIndex:withDetailTableViewModel:".

 
- (void)tableViewModel:(SCTableViewModel *)tableViewModel
detailViewWillAppearForSectionAtIndex:(NSUInteger)index
withDetailTableViewModel:(SCTableViewModel *)detailTableViewModel
{
detailTableViewModel.viewController.title = @"My Title";
}
 


Hope this helps.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Title of 'Add' modal view controller 1 year, 5 months ago #3

Thanks, Tarek! That works.
  • Patrick
  • OFFLINE
  • Senior Boarder
  • Posts: 49
  • Karma: 3
  • Page:
  • 1
Time to create page: 0.76 seconds