The tag value is an Integer:
UIButton *button=[UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:addressField forState:UIControlStateNormal];
[bu
There is a simple way for passing a NSString parameter with uibutton i.e. just set title of buuton with clear color and font size 0.0f.This is valid if your using a image([button setBackgroundImage:anyImage. forState:UIControlStateNormal];) on button and not showing the titl and then you can get "sender.currentTitle" and use this variable