Closed daviddelmonte closed 10 years ago
Hi David,
your code is very specific and I don't really get the meaning of this issue. Is it meant as a feature request to make UIButton
support the morphing effect as well?
Hi Tom, I don't exactly remember the context. I must be getting old.. But I am able to morph button labels (between in this case -- english and greek. So I don't think I was asking for anything.. Anyway, I can't remember :)
You can use this mod to add the morph to a button label. (I use it for cross-language apps).
(void)toggleTextForLabel:label1 { NSLog(@"toggleTextForLabel"); self.label1.text = @" "; //cleans out prior label self.label1.text = textValues[self.idx++];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(4 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self toggleTextForLabel:self]; [button1 setTitle:self.label1.text forState:UIControlStateNormal]; }); }