         //            rightButton.hidden = true
         //        }
     }
-
+    
     // MARK: - Button action
     @IBAction func rightButtonAction(sender: UIButton) {
         if let passwordGeneratorController = superController?.storyboard?.instantiateViewControllerWithIdentifier("PMPasswordGeneratorController") as? PMPasswordGeneratorController {
-            passwordGeneratorController.success = { [unowned self](randomString: String) -> Void in 
+            passwordGeneratorController.success = { [unowned self](randomString: String) -> Void in
                 self.ele?.rightText = randomString
-                }
+            }
             superController?.showViewController(passwordGeneratorController, sender: nil)
         }
     }

            case "password":
                rightField.keyboardType = UIKeyboardType.ASCIICapable
                rightField.secureTextEntry = true
            default:
                break
            }


class PMDetailControllerCell: UITableViewCell , UITextFieldDelegate {
    weak var superController: PMDetailController?
    
    /**
     *
     通过ele的didSet来实现自定义类型cell
     */
    var ele: Element? {
        didSet {
            if let lt = ele?.leftText {
