xamarin.ios - UIButton SetImage property only displays image when clicked -


i have uibutton image set inside. image shows when button clicked, displays regardless of button's status.

this.setimage(image, uicontrolstate.normal); 

the image shows when have mouse clicked down on button. have tried other states--for instance, uicontrolstate.highlighted, though image not display @ in state.

uibutton *m_btnsample = [uibutton buttonwithtype:uibuttontypecustom];     [m_btnsample setframe:cgrectmake(200, 300, 200, 40)];     [m_btnsample setimage:[uiimage imagenamed:@"smiley1.jpg"] forstate:uicontrolstatenormal];     [self.view addsubview:m_btnsample]; 

acc above code wht have written , image getting set regardless of state


Comments