Skip to content

Instantly share code, notes, and snippets.

@sinc
Created April 13, 2012 09:50
Show Gist options
  • Save sinc/2375480 to your computer and use it in GitHub Desktop.
Save sinc/2375480 to your computer and use it in GitHub Desktop.
клевый метод показать, что в таблице нет элементов.
m_pTable.tableFooterView = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, 100.0f)];
((UILabel*)m_pTable.tableFooterView).text = @"Ничего не найдено";
((UILabel*)m_pTable.tableFooterView).textColor = [UIColor grayColor];
((UILabel*)m_pTable.tableFooterView).textAlignment = UITextAlignmentCenter;
   
UIEdgeInsets e = UIEdgeInsetsMake(0, 0, -100, 0);
[m_pTable setContentInset:e];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment