I am working on an iPad app and I want the user to be able to select a team from a CoreData table. And if the team is not there, the ability to create one on the fly quickly. I use a SCPropertyTypeObjectSelection which works OK until I add the allowAddingItems.
The navigationBar of the popup displays just a single "Edit" button. The "Cancel" and "Done" buttons have disappear giving the user no way of selecting/cancelling the action.
What did I do wrong?
SCPropertyDefinition *oppPropertyDef = [matchDef propertyDefinitionWithName:@"Opposition"]; oppPropertyDef.type = SCPropertyTypeObjectSelection; SCObjectSelectionAttributes *oppPropertyDefAttributes = [SCObjectSelectionAttributes attributesWithItemsEntityClassDefinition:teamDef allowMultipleSelection:NO allowNoSelection:NO]; oppPropertyDefAttributes.allowAddingItems = YES; oppPropertyDefAttributes.placeholderuiElement = [SCTableViewCell cellWithText:@"(No opposition selected)"]; oppPropertyDefAttributes.addNewObjectuiElement = [SCTableViewCell cellWithText:@"Add new team"]; oppPropertyDef.attributes = oppPropertyDefAttributes;