我在我的設置頁面中有兩個UIButton
,一個按鈕用於增加文本的字體大小,另一個用於減小文本的字體大小。但所有我需要的是當用戶點擊UIButton
增加字體大小,它需要切割18pt,然後用戶再次點擊或再次在同一個按鈕,它需要設置字體大小爲24pt,然後再次錄音字體大小爲32pt的水泥會產生相同的按鈕。我需要限制或者輕點計數。反之亦然減小字體大小按鈕相同的效果。如何獲取UIButton中的抽頭數?
-(IBAction)_clickfontsizeincrease:(id)sender
{
self.multiPageView.font = [UIFont systemFontOfSize:30.0f];
}
-(IBAction)_clickfontsizedecrease:(id)sender
{
self.multiPageView.font = [UIFont systemFontOfSize:10.0f];
}
如何做到這一點?提前致謝。
你可以解釋一下嗎? – stackiphone
@stackiphone - 解釋是什麼意思? – rishi