Passing parameters to addTarget:action:forControlEvents

action:@selector(switchToNewsDetails:) You do not pass parameters to switchToNewsDetails: method here. You just create a selector to make button able to call it when certain action occurs (touch up in your case). Controls can use 3 types of selectors to respond to actions, all of them have predefined meaning of their parameters: with no parameters action:@selector(switchToNewsDetails) … Read more