Skip to content

Commit

Permalink
Added a basic tableview and button to hide/show the tableview. Not ye…
Browse files Browse the repository at this point in the history
…t implemented.
  • Loading branch information
peterhajas committed Apr 12, 2011
1 parent 644137d commit e1551a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions MNLockScreenViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
UILabel* numberOfPendingAlertsLabel;
UILabel* mobileNotifierTextLabel;

UIButton* showPendingAlertsListButton;
UITableView* pendingAlertsList;

id <MNLockScreenViewControllerDelegate> _delegate;
}

Expand Down
10 changes: 9 additions & 1 deletion MNLockScreenViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit e1551a5

Please sign in to comment.