Make sure your class has the corresponding UIButton property for the button:
@property(nonatomic, strong) IBOutlet UIButton *m_Button;
Then, in the user interface builder, you can connect the button and the outlet. In your code, you can access the properties of the buttons that you created programmatically.
source share