Sfoglia il codice sorgente

network list controller: expose cell identifier

Felix Paul Kühne 10 anni fa
parent
commit
7a5780e2d2

+ 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;