Friday, September 25, 2009

iPhone: Display "No Contacts" like in the iPhone contacts

Q. how to show No Contacts in UITableView, which gets displayed in Address Book home screen of iPhone.

create an array with size of no.of cells displayed and populate the center cell.

cell.textLabel.text= @"No Contacts";
cell.textLabel.textAlignment= UITextAlignmentCenter;
cell.textLabel.textColor= [UIColor lightGrayColor];

or
this post fulfill the same

19 comments: