Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/federicocappelli/fccollectioneditor

The Collection editor view controller is a fast and ready to use recursive way to edit many Collection types provided by Foundation framework.
https://github.com/federicocappelli/fccollectioneditor

Last synced: 2 days ago
JSON representation

The Collection editor view controller is a fast and ready to use recursive way to edit many Collection types provided by Foundation framework.

Awesome Lists containing this project

README

        

#FCCollectionEditor
FCCollectionEditor view controller is a fast and ready to use recursive way to edit many Collection types provided by Foundation framework.

## Screenshots:

Screenshot 1 Screenshot 2

## Foundation classes supported (+mutable versions):
* NSArray
* NSDictionary
* NSSet
* NSNumber
* NSString

Functions: edit and delete values

## How to use:
Have a look to the **FCCollectionEditorSample** provided.

## Steps
1. import "FCCollectionEditorViewController.h"
2. Implement FCCollectionEditorDelegate
3. Create and push the FCCollectionEditor

```
NSDictionary * dataModel = @{
@"Name":@"Federico Cappelli",
@"Age":@(31),
@"Boolean":@(YES),
@"A Dictionary" : @{@"key 1":@(1), @"Key 2":@"value 2"},
@"An Array" : @[@"A",@"B",@"C",@"D",@"E"],
@"A Set": [NSSet setWithObjects:@"Obj 1",@"Obj 2",@"Obj 3",@"Obj 4", nil] ,
}

FCCollectionEditorViewController * vc = [[FCCollectionEditorViewController alloc] init];
[vc setDataModelObject:dataModel];
vc.delegate = self;
[self.navigationController pushViewController:vc animated:YES];
```
## TODO:
- Add NSOrderedSet support
- Implement edit capabilities for dictionary's keys