ios - UIButton's title mysteriously disappears when sliding back too fast -



ios - UIButton's title mysteriously disappears when sliding back too fast -

i have uibutton in main screen, of title should show playing or to-be-played music, if playlist empty, should show "music", clicking bring song selecting screen(when playlist empty) or play list screen(when playlist not empty), after selecting song , go playlist screen, , delete song , slide main screen, title of uibutton should show "music".

here's problem: when sliding fast, "music" text show in split sec , disappears, when sliding slowly, "music" text stays.

i've recorded unusual behavior in this 25-second video.

here's related code:

- (void)updatechoosemusicbutton { if(self.songqueue.count == 0) { [self.choosemusicbutton settitle:@"music" forstate:uicontrolstatenormal]; } } - (void)setchoosemusicbutton:(uibutton *)choosemusicbutton { _choosemusicbutton = choosemusicbutton; [_choosemusicbutton settitlecolor:[uicolor blackcolor] forstate:uicontrolstatenormal]; [_choosemusicbutton settitlecolor:[uicolor blackcolor] forstate:uicontrolstatehighlighted]; }

found solution: alter type of button "custom", using "system". , takes care of flashing when title changes.

ios objective-c ios7 uibutton ios8

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -