Tag: 访问视图

animationinputAccessoryView Swift的高度

你好我试图改变一个button设置为inputAccessoryView一旦我点击它的高度。 不幸的是,似乎只能改变位置,而不是高度。 谁能帮我吗? 在我的代码下面。 谢谢! import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet var textField: UITextField! var SendButton: UIButton = UIButton.buttonWithType(UIButtonType.Custom) as UIButton override func viewDidLoad() { super.viewDidLoad() SendButton.frame = CGRectMake(0, 0, UIScreen.mainScreen().applicationFrame.width, 30) SendButton.backgroundColor = UIColor(red: 184/255.0, green: 56/255.0, blue: 56/255.0, alpha: 1) SendButton.setTitle("Send", forState: .Normal) SendButton.addTarget(self, action: "sendNotification", forControlEvents: UIControlEvents.AllEvents) } override func […]