|
|
@ -18,14 +18,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
@implementation NotificationPreviewViewController
|
|
|
|
@implementation NotificationPreviewViewController
|
|
|
|
|
|
|
|
|
|
|
|
- (void)viewDidLoad {
|
|
|
|
- (void)viewDidLoad
|
|
|
|
|
|
|
|
{
|
|
|
|
[super viewDidLoad];
|
|
|
|
[super viewDidLoad];
|
|
|
|
self.navigationItem.title = @"Notification Style";
|
|
|
|
self.navigationItem.title = @"Notification Style";
|
|
|
|
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
|
|
|
|
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
|
|
|
|
self.clearsSelectionOnViewWillAppear = NO;
|
|
|
|
self.clearsSelectionOnViewWillAppear = NO;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)didReceiveMemoryWarning {
|
|
|
|
- (void)didReceiveMemoryWarning
|
|
|
|
|
|
|
|
{
|
|
|
|
[super didReceiveMemoryWarning];
|
|
|
|
[super didReceiveMemoryWarning];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -39,11 +41,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
#pragma mark - Table view data source
|
|
|
|
#pragma mark - Table view data source
|
|
|
|
|
|
|
|
|
|
|
|
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
|
|
|
|
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
|
|
|
|
|
|
|
{
|
|
|
|
return 4;
|
|
|
|
return 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
|
|
|
|
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -51,15 +55,14 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
|
|
|
|
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
|
|
|
|
[header.textLabel setTextColor:[UIColor blackColor]];
|
|
|
|
[header.textLabel setTextColor:[UIColor blackColor]];
|
|
|
|
|
|
|
|
if (SYSTEM_VERSION_GREATER_THAN(_iOS_8_0_2)) {
|
|
|
|
[header.textLabel setFont:[UIFont ows_thinFontWithSize:14.0f]];
|
|
|
|
[header.textLabel setFont:[UIFont ows_thinFontWithSize:14.0f]];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (_defaultSelectedIndexPath != nil && ![_defaultSelectedIndexPath isEqual:indexPath]) {
|
|
|
|
if (_defaultSelectedIndexPath != nil && ![_defaultSelectedIndexPath isEqual:indexPath])
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
[self deselectRowAtIndexPath:_defaultSelectedIndexPath];
|
|
|
|
[self deselectRowAtIndexPath:_defaultSelectedIndexPath];
|
|
|
|
_defaultSelectedIndexPath = nil;
|
|
|
|
_defaultSelectedIndexPath = nil;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -83,7 +86,6 @@
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
|
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
@ -113,6 +115,4 @@
|
|
|
|
[self.tableView.delegate tableView:self.tableView didDeselectRowAtIndexPath:indexPath];
|
|
|
|
[self.tableView.delegate tableView:self.tableView didDeselectRowAtIndexPath:indexPath];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
|
|
|
@end
|
|
|
|