推 aecho:Button的action,有固定幾種signature,沒辦法讓你這樣自訂 04/29 22:11
→ wfgh:請問是什麼固定的signature呢?action不就是event handler嗎 05/02 09:42
→ aecho:Button的action,在iOS有三種格式 05/03 07:44
→ aecho:xxxAction, xxxAction:(id)sender, 05/03 07:44
→ aecho:xxxAction:(id)sender event:(UIEvent *)event 05/03 07:44
→ aecho:signature是指method signature, 不過我這邊好像有誤用? 05/03 07:46
→ aecho:UIButton是繼承UIControl 05/03 07:47
→ aecho:而addTarget:action:forControlEvents:是UIControl的函式 05/03 07:47
→ aecho:像addTarget:action:forControlEvents:就是obj-c的method 05/03 07:48
→ aecho:signature。 05/03 07:48