 
 import UIKit
 
-class ShiftImport: UIViewController{
+class ShiftImport: UIViewController,UITextFieldDelegate{
     
     @IBOutlet weak var textfield: UITextField!
     

    override func viewDidLoad() {
        super.viewDidLoad()
        
        //self.view.backgroundColor = UIColor(patternImage: UIImage(named: "../images/33791975.jpeg")!)
        backgournd.image = backgourndimage
        backgournd.frame = CGRectMake(0.0, 65.0, self.view.frame.width, self.view.frame.height)
        self.view.addSubview(backgournd)
        self.view.sendSubviewToBack(backgournd)
        if(DBmethod().FilePathTmpGet() != ""){
            textfield.text = DBmethod().FilePathTmpGet().lastPathComponent
        }

        InboxFileCountRecord.counts = DBmethod().InboxFileCountsGet()-1
        DBmethod().AddandUpdate(InboxFileCountRecord)
    }
    
    func textFieldShouldReturn(aaa: UITextField) -> Bool {
        aaa.resignFirstResponder()
        return true
    }
}
