mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-31 12:54:14 -04:00 
			
		
		
		
	added files via upload
This commit is contained in:
		
							
								
								
									
										48
									
								
								Tweaks/FLEX/Core/Views/FLEXTableView.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								Tweaks/FLEX/Core/Views/FLEXTableView.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| // | ||||
| //  FLEXTableView.h | ||||
| //  FLEX | ||||
| // | ||||
| //  Created by Tanner on 4/17/19. | ||||
| //  Copyright © 2020 FLEX Team. All rights reserved. | ||||
| // | ||||
|  | ||||
| #import <UIKit/UIKit.h> | ||||
|  | ||||
| NS_ASSUME_NONNULL_BEGIN | ||||
|  | ||||
| #pragma mark Reuse identifiers | ||||
|  | ||||
| typedef NSString * FLEXTableViewCellReuseIdentifier; | ||||
|  | ||||
| /// A regular \c FLEXTableViewCell initialized with \c UITableViewCellStyleDefault | ||||
| extern FLEXTableViewCellReuseIdentifier const kFLEXDefaultCell; | ||||
| /// A \c FLEXSubtitleTableViewCell initialized with \c UITableViewCellStyleSubtitle | ||||
| extern FLEXTableViewCellReuseIdentifier const kFLEXDetailCell; | ||||
| /// A \c FLEXMultilineTableViewCell initialized with \c UITableViewCellStyleDefault | ||||
| extern FLEXTableViewCellReuseIdentifier const kFLEXMultilineCell; | ||||
| /// A \c FLEXMultilineTableViewCell initialized with \c UITableViewCellStyleSubtitle | ||||
| extern FLEXTableViewCellReuseIdentifier const kFLEXMultilineDetailCell; | ||||
| /// A \c FLEXTableViewCell initialized with \c UITableViewCellStyleValue1 | ||||
| extern FLEXTableViewCellReuseIdentifier const kFLEXKeyValueCell; | ||||
| /// A \c FLEXSubtitleTableViewCell which uses monospaced fonts for both labels | ||||
| extern FLEXTableViewCellReuseIdentifier const kFLEXCodeFontCell; | ||||
|  | ||||
| #pragma mark - FLEXTableView | ||||
| @interface FLEXTableView : UITableView | ||||
|  | ||||
| + (instancetype)flexDefaultTableView; | ||||
| + (instancetype)groupedTableView; | ||||
| + (instancetype)plainTableView; | ||||
| + (instancetype)style:(UITableViewStyle)style; | ||||
|  | ||||
| /// You do not need to register classes for any of the default reuse identifiers above | ||||
| /// (annotated as \c FLEXTableViewCellReuseIdentifier types) unless you wish to provide | ||||
| /// a custom cell for any of those reuse identifiers. By default, \c FLEXTableViewCell, | ||||
| /// \c FLEXSubtitleTableViewCell, and \c FLEXMultilineTableViewCell are used, respectively. | ||||
| /// | ||||
| /// @param registrationMapping A map of reuse identifiers to \c UITableViewCell (sub)class objects. | ||||
| - (void)registerCells:(NSDictionary<NSString *, Class> *)registrationMapping; | ||||
|  | ||||
| @end | ||||
|  | ||||
| NS_ASSUME_NONNULL_END | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn