Browse Source

network list controller: expose cell identifier

Felix Paul Kühne 10 years ago
parent
commit
7a5780e2d2
2 changed files with 5 additions and 0 deletions
  1. 2 0
      Sources/VLCNetworkListViewController.h
  2. 3 0
      Sources/VLCNetworkListViewController.m

+ 2 - 0
Sources/VLCNetworkListViewController.h

@@ -12,6 +12,8 @@
 
 @class VLCNetworkListCell;
 
+extern NSString *VLCNetworkListCellIdentifier;
+
 @interface VLCNetworkListViewController : UIViewController
 
 @property (nonatomic, strong) UITableView *tableView;

+ 3 - 0
Sources/VLCNetworkListViewController.m

@@ -14,6 +14,8 @@
 #import "VLCNetworkListViewController.h"
 #import "VLCNetworkListCell.h"
 
+NSString *VLCNetworkListCellIdentifier = @"VLCNetworkListCellIdentifier";
+
 @interface VLCNetworkListViewController () <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate, UISearchDisplayDelegate>
 {
     NSMutableArray *_searchData;
@@ -31,6 +33,7 @@
     _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
     _tableView.delegate = self;
     _tableView.dataSource = self;
+    _tableView.opaque = YES;
     _tableView.rowHeight = [VLCNetworkListCell heightOfCell];
     _tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
     _tableView.indicatorStyle = UIScrollViewIndicatorStyleWhite;