2016-06-23 5 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です。