A better approach here is to subclass UIButton so button will hold a product as follow: class ProductButton : UIButton{ let product ...
確定! 回上一頁