From f8430afa158620905325dfe2381925192bd9ebbc Mon Sep 17 00:00:00 2001 From: nixzhu Date: Mon, 1 Jun 2015 23:45:22 +0800 Subject: [PATCH] show No more new friends. if no more friendsInContacts --- .../FriendsInContacts/FriendsInContactsViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Yep/ViewControllers/FriendsInContacts/FriendsInContactsViewController.swift b/Yep/ViewControllers/FriendsInContacts/FriendsInContactsViewController.swift index e5c6dac6..cce96351 100644 --- a/Yep/ViewControllers/FriendsInContacts/FriendsInContactsViewController.swift +++ b/Yep/ViewControllers/FriendsInContacts/FriendsInContactsViewController.swift @@ -26,7 +26,13 @@ class FriendsInContactsViewController: BaseViewController { updateDiscoverTableView() } else { + let label = UILabel(frame: CGRect(x: 0, y: 0, width: friendsTableView.bounds.width, height: 240)) + label.textAlignment = .Center + label.text = NSLocalizedString("No more new friends.", comment: "") + label.textColor = UIColor.lightGrayColor() + + friendsTableView.tableFooterView = label } } }