diff options
| -rw-r--r-- | cakeside-ios/controllers/CreationsTableViewController.m | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/cakeside-ios/controllers/CreationsTableViewController.m b/cakeside-ios/controllers/CreationsTableViewController.m index 0bc3052..61c9c38 100644 --- a/cakeside-ios/controllers/CreationsTableViewController.m +++ b/cakeside-ios/controllers/CreationsTableViewController.m @@ -92,7 +92,7 @@ { if (!self.data || self.data.count == 0) { - return 0; + return 1; } else { @@ -102,6 +102,17 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { + if(!self.data || self.data.count == 0) + { + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"LoadingCell"]; + if (cell == nil) + { + cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"LoadingCell"]; + } + cell.textLabel.text = @"Loading..."; + return cell; + } + UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"CakeCell"]; if (cell == nil) { |
