Skip to content

Commit 9432c07

Browse files
author
norsez
committed
add background color property
1 parent 0c47ec7 commit 9432c07

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Classes/BDDynamicGridViewController.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
*/
8383
- (void)updateLayoutWithRow:(BDRowInfo*)rowInfo animiated:(BOOL)animated;
8484

85+
/**
86+
@param color color for the background.
87+
*/
88+
- (void)setBackgroundColor:(UIColor*)color;
89+
8590
/**
8691
@name Properties
8792
*/

Classes/BDDynamicGridViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfa
9191
return [super shouldAutorotateToInterfaceOrientation:toInterfaceOrientation];
9292
}
9393

94+
- (void)setBackgroundColor:(UIColor *)color
95+
{
96+
_tableView.backgroundColor = color;
97+
}
98+
9499
#pragma mark - Table view data source
95100

96101
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

0 commit comments

Comments
 (0)