This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class DTFBaseTypedTableViewController<T>: UIViewController { | |
private lazy var tableView: UITableView = { | |
let tableView = UITableView() | |
tableView.setTranslatesAutoresizingMaskIntoConstraints(false) | |
tableView.dataSource = self | |
tableView.delegate = self | |
return tableView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------- .h file ------------------------------------------------ | |
static void *MCDAlertViewCodeBlockKey = &MCDAlertViewCodeBlockKey; | |
@interface UIViewController (MCDAlertViewDelegate) <UIAlertViewDelegate> | |
@end | |
---------- .m file ------------------------------------------------- | |
#import <objc/runtime.h> |