From e1551a51a58a261e84992b2dd7bae96dcde712dd Mon Sep 17 00:00:00 2001 From: Peter Hajas Date: Tue, 12 Apr 2011 19:04:21 -0400 Subject: [PATCH] Added a basic tableview and button to hide/show the tableview. Not yet implemented. --- MNLockScreenViewController.h | 3 +++ MNLockScreenViewController.m | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/MNLockScreenViewController.h b/MNLockScreenViewController.h index 812295c..76a8d25 100644 --- a/MNLockScreenViewController.h +++ b/MNLockScreenViewController.h @@ -42,6 +42,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. UILabel* numberOfPendingAlertsLabel; UILabel* mobileNotifierTextLabel; + UIButton* showPendingAlertsListButton; + UITableView* pendingAlertsList; + id _delegate; } diff --git a/MNLockScreenViewController.m b/MNLockScreenViewController.m index fd824ba..f437eb3 100644 --- a/MNLockScreenViewController.m +++ b/MNLockScreenViewController.m @@ -67,7 +67,15 @@ -(id)initWithDelegate:(id)__delegate; mobileNotifierTextLabel.shadowColor = [UIColor blackColor]; mobileNotifierTextLabel.shadowOffset = CGSizeMake(0,-1); mobileNotifierTextLabel.backgroundColor = [UIColor clearColor]; - + + //Create the tableview + pendingAlertsList = [[UITableView alloc] initWithFrame:CGRectMake(16.5,175,287,200) style:UITableViewStylePlain]; + pendingAlertsList.delegate = self; + pendingAlertsList.dataSource = self; + [pendingAlertsList setAlpha:1.0]; + pendingAlertsList.backgroundColor = [UIColor whiteColor]; + pendingAlertsList.layer.cornerRadius = 10; + [lockWindow addSubview:backgroundImageView]; [lockWindow addSubview:logoImageView]; [lockWindow addSubview:numberOfPendingAlertsBackground];