Skip to content

Instantly share code, notes, and snippets.

View darren102's full-sized avatar

Darren Ferguson darren102

  • M.C. Dean Inc
  • Virginia
View GitHub Profile
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
----------- .h file ------------------------------------------------
static void *MCDAlertViewCodeBlockKey = &MCDAlertViewCodeBlockKey;
@interface UIViewController (MCDAlertViewDelegate) <UIAlertViewDelegate>
@end
---------- .m file -------------------------------------------------
#import <objc/runtime.h>