//
//  ExtensionUITableViewCell.swift
//  GGITCommon iOS
//
//  Created by Kelvin Leong on 14/09/2018.
//  Copyright © 2018 Grace Generation Information Technology. All Rights Reserved. All rights reserved.
//

import UIKit

extension UITableViewCell{
//    open func resizeNibCellWidth(){
//        var frame : CGRect?
//        frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: self.contentView.bounds.height)
//
//        self.frame = frame!
//        self.bounds = frame!
//        self.contentView.bounds = frame!
//    }
    
//    open func showAlertView(title: String, message: String, actionTitle: String, completion: @escaping () -> Void) {
//        #if swift(>=4.2)
//        let alertController = UIAlertController(title: title, message: message, preferredStyle: UIAlertController.Style.alert)
//        let okAction = UIAlertAction(title: actionTitle, style: UIAlertAction.Style.default) { (result : UIAlertAction) -> Void in
//            completion()
//        }
//        alertController.addAction(okAction)
//        self.inputViewController?.present(alertController, animated: true, completion: nil)
//        #else
//        let alertController = UIAlertController(title: title, message: message, preferredStyle: UIAlertControllerStyle.alert)
//        let okAction = UIAlertAction(title: actionTitle, style: UIAlertActionStyle.default) { (result : UIAlertAction) -> Void in
//            completion()
//        }
//        alertController.addAction(okAction)
//        self.inputViewController?.present(alertController, animated: true, completion: nil)
//        #endif
//        
//    }
}
