我正在學Objective-C中的UITableView。你能否提示我如何從UIViewController類訪問UITableviewHeaderFooterView子類中的UIButton?以編程方式,因爲我不使用IB。如何訪問UITableViewHeaderFooterView子類內的UIButton(或任何UIElement)?
全碼:https://gist.github.com/tomnaz/3d790b308d305af8b98c
[[??? btnEdit] addTarget:self
action:@selector(addNewItem:)
forControlEvents:UIControlEventTouchUpInside];
解決了這個問題。感謝提示。 – 2015-04-01 16:36:00