mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-31 12:54:13 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Objective-C
		
	
	
	
	
	
| //
 | |
| //  PTTableContentViewController.h
 | |
| //  PTDatabaseReader
 | |
| //
 | |
| //  Created by Peng Tao on 15/11/23.
 | |
| //  Copyright © 2015年 Peng Tao. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <UIKit/UIKit.h>
 | |
| #import "FLEXDatabaseManager.h"
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @interface FLEXTableContentViewController : UIViewController
 | |
| 
 | |
| /// Display a mutable table with the given columns, rows, and name.
 | |
| ///
 | |
| /// @param columnNames self explanatory.
 | |
| /// @param rowData an array of rows, where each row is an array of column data.
 | |
| /// @param rowIDs an array of stringy row IDs. Required for deleting rows.
 | |
| /// @param tableName an optional name of the table being viewed, if any. Enables adding rows.
 | |
| /// @param databaseManager an optional manager to allow modifying the table.
 | |
| ///        Required for deleting rows. Required for adding rows if \c tableName is supplied.
 | |
| + (instancetype)columns:(NSArray<NSString *> *)columnNames
 | |
|                    rows:(NSArray<NSArray<NSString *> *> *)rowData
 | |
|                  rowIDs:(NSArray<NSString *> *)rowIDs
 | |
|               tableName:(NSString *)tableName
 | |
|                database:(id<FLEXDatabaseManager>)databaseManager;
 | |
| 
 | |
| /// Display an immutable table with the given columns and rows.
 | |
| + (instancetype)columns:(NSArray<NSString *> *)columnNames
 | |
|                    rows:(NSArray<NSArray<NSString *> *> *)rowData;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 | 
