2016-06-23 2 views
-5
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { 
    let cell = tableView.dequeueReusableCellWithIdentifier("MyCell", forIndexPath:indexPath) as! MyTableViewCell 
    cell.myButton.addTarget(self, action: "myClick:", forControlEvents: .TouchUpInside) 
} 

FUNC의 myClick #selector하기 (보낸 사람 :있는 UIButton) {패스 여러 매개 변수

} 지금, 내가 보낸 사람에게 서로 매개 변수를 전달하려면 :있는 UIButton, 그래서 내가 어떻게 통과 할 수 있습니까?

답변

0

당신이 보낼 수있는 유일한 매개 변수는 보낸 사람, 귀하의 경우에는 UIButton입니다.