|
|
@@ -226,11 +226,22 @@
|
|
|
{
|
|
|
DebugLog(@"canMoveRowAtIndexPath");
|
|
|
|
|
|
- if([tableView numberOfRowsInSection:indexPath.section]>1)
|
|
|
- return true;
|
|
|
- else
|
|
|
- return false;
|
|
|
+// if([tableView numberOfRowsInSection:indexPath.section]>1)
|
|
|
+// return true;
|
|
|
+// else
|
|
|
+// return false;
|
|
|
+
|
|
|
+ if (indexPath.section == 0 && [tableView numberOfRowsInSection:indexPath.section] == 1) {
|
|
|
+ return NO;
|
|
|
+ } else {
|
|
|
+ return YES;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
+ return YES;
|
|
|
+}
|
|
|
+
|
|
|
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
|
|
|
{
|
|
|
NSMutableArray * from;
|