Anyone know why I am getting this error?
Terminating app due to uncaught exception \'NSInvalidArgumentException\', reason: \'-[CustomRaisedTabViewController
action: @selector(cancel:)
For the action selector which takes parameter! cancel: that means which will take another parameter.
change your method to
-(IBAction)cancel:(id)sender{ // Do wat you want } or -(IBAction)cancel:(UIButton *)btnSender{ /// Do what you want }