1
我需要在運行時修改UIButton的寬度。具有此按鈕的xib文件啓用了自動佈局。用aoutolayout以編程方式修改UIButton寬度
CGFloat delta = 40.0;
self.Button.frame = CGRectMake(self.Button.frame.origin.x - delta,
self.Button.frame.origin.y,
self.Button.frame.size.width + delta,
self.Button.frame.size.height
);
如何在autolayout上做到這一點?
你試過了嗎? – Undo