Commit 6f7371a3 authored by A. Wilcox's avatar A. Wilcox

iUI: WTPrettyListVC: Editing property is now the owning VC's responsibility.

As such, support non-editing modes.
parent 265f09b6
......@@ -52,7 +52,6 @@
{
[super viewDidLoad];
[self setEditing:YES animated:NO];
[[self tableView] setAllowsSelectionDuringEditing:YES];
}
......@@ -85,6 +84,8 @@
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if(![self isEditing]) return [model count];
return MIN([model count] + 1, maxItems);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment