ios - Swift Show UIbutton -
i'm new in swift , programming. have uipickerview
, uibutton
(by default button invisible ) in storyboard
, want show mybutton
when alter row in uipickerview
(pickerview.selectedrowincomponent(0) == 1
) , when press mybutton
something. here code: mybutton
, pickerview
.
how can show mybutton
?
@ibaction func mybutton(sender: uibutton) { println("button clicked", sender) //here } func pickerview(pickerview: uipickerview, didselectrow row: int, incomponent component: int) { if pickerview.selectedrowincomponent(0) == 1 { //how set uibutton property visible, here ??? }
try this:
mybutton.hidden = false
ios swift uibutton
No comments:
Post a Comment