Closed crubiales closed 10 years ago
Hi, Yes you are right you can add commonInit in either initWithCoder: or awakeFromNib in this case, I have released 0.1.1 to support this, have a look :smile:
Thanks for the quick fix.
Actually, if you are initiating the label with text from the storyboard, you need to set again the text for the label so it can animate, is this the expected behavior?
Hello!
I love it, but I cannot use it by creating an UILabel with custom class RQShineLabel through an IBOutlet in my storyboard.
The only thing missing to work is to add the "awakeFromNib" function in the RQShineLabel implementation. I have added it and called [self commonInit] and it works perfectly, so if you wish, i think you can add that to be able to use it from storyboards or nibs :)
PS: I am someway new at developing with iOS, so my "solution" may not be the 'perfect one' (hell, it can be a total mess! :P) . I just know that an IBOutlet called from storyboards/nibs calls the "awakeFromNib" function, so I changed it in your code so I can use it 'not' programatically :)
Thanks for the code!!!