cocoa touch - how to hide buttons in objective-c -


so, realize there multiple threads asking type of question, none of them describe kind of error i'm having.

i create variables , set methods in header here:

iboutlet uibutton *buildnewtower; iboutlet uibutton *canceltower;  -(ibaction)buildnewtower:(id)sender; -(ibaction)canceltower:(id)sender; 

i call these functions in main class so:

-(ibaction)buildnewtower:(id)sender{ if(credits >= 15){     buildnewtower.hidden = yes;     canceltower.hidden = no;      tower1s.hidden = no;     tower2s.hidden = no;     tower3s.hidden = no;     tower4s.hidden = no;     tower5s.hidden = no;     } }  -(ibaction)canceltower:(id)sender{ buildnewtower.hidden = no; canceltower.hidden = yes;  tower1s.hidden = yes; tower2s.hidden = yes; tower3s.hidden = yes; tower4s.hidden = yes; tower5s.hidden = yes; } 

roughly summed up, buildnewtower , canceltower buttons not react .hidden variable inherit. other objects (all imageviews) disappear should.

i'm guessing might buttons , them being hidden?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -