UA-17470720-3

Jump to content


Photo
- - - - -

Visual design of header for section of objects


  • Please log in to reply
2 replies to this topic

#1 channel200

channel200

    Starting Out

  • STV Lite
  • Pip
  • 4 posts
Reputation: 0
Neutral

Posted 07 September 2016 - 08:00 AM

We have an app which has multiple master-detail levels - think of a task manager in which each task has one or more sub-tasks in addition to singular properties such as title and summary, each sub-task has it's own list of sub-items, and so on.

 

It would be optimal to place a control in the header section of each arrayOfObjects section to invoke the 'add' method, rather than using the standard top-right '+' button control in the navigation button. Xcode still doesn't expose UITableView section headers and footers as IBDesignable, and SensibleTableView doesn't appear to either. This means we need to do this in code. Am I missing anything in SensibleTableView, or is anyone aware of a third-party IBDesignable tableview header/footer?



#2 Tarek

Tarek

    Forum Admin

  • Administrators
  • 3670 posts
Reputation: 448
Popular

Posted 07 September 2016 - 01:28 PM

Hi,

 

From code, you can programmatically instruct any SCArrayOfObjectsSection to display it's 'Add' view controller simply by calling its dispatchEventAddNewItem method.

 

Hope this helps.



#3 channel200

channel200

    Starting Out

  • STV Lite
  • Pip
  • 4 posts
Reputation: 0
Neutral

Posted 07 September 2016 - 03:20 PM

dispatchEventAddNewItem dispatches the event - the problem here is displaying a control in the section's header view to provide a target for invoking the method. We can load a custom header in code too, but it would be nice to do it in IB.

 

I do, however, see the 'addNewItemCell' property of SCArrayOfItemsSection, which is an answer to the problem. 

 

thks.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users