我將四到五個視圖添加到UIScrollview。UIButton選擇器錯誤
我在運行時動態創建視圖。
所有視圖都包含一個按鈕。
{
UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
[button addTarget:self action:@selector(category_selected:) forControlEvents:UIControlEventTouchUpInside];
}
意見添加成功,但是當我點擊按鈕「無法識別的選擇發送到實例0x657e850」所示。我究竟做錯了什麼?