我想在點擊日曆按鈕時將日曆高度約束124更改爲零,我該怎麼做?我想使用按鈕語句,但我不能在客觀的c。謝謝。如何用按鈕更改高度約束?
@property (weak, nonatomic) IBOutlet UIBarButtonItem *calendarButton;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *heightOfCalendar;`
- (IBAction)calendarAction:(id)sender {
}
- (IBAction爲)calendarAction:(ID)發送方{ heightOfCalendar.constant = 0; } –
不工作的人。 –
給我同樣的錯誤。 –