Created
April 13, 2012 09:50
-
-
Save sinc/2375480 to your computer and use it in GitHub Desktop.
клевый метод показать, что в таблице нет элементов.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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