glaszig / SZTextView

A drop-in UITextView replacement which gives you: a placeholder.
MIT License
682 stars 102 forks source link

Fix for font in Interface Builder not being used in the placeholder #27

Closed msfeldstein closed 9 years ago

msfeldstein commented 9 years ago

Update placeholder attributes in awakeFromNib so that things like font from IB are carried over

glaszig commented 9 years ago

your issue is that you set the font in ib, run the app and it's not the expected font? i can't reproduce this. i think the included demo is doing exactly that and it works for me.

msfeldstein commented 9 years ago

Hmm it looks like it does work in the demo. Not sure what was happening in my app, you can just delete the pull request, sorry.

On Mon, Dec 1, 2014 at 5:35 PM, glaszig notifications@github.com wrote:

your issue is that you set the font in ib, run the app and it's not the expected font? i can't reproduce this. i think the included demo is doing exactly that and it works for me.

— Reply to this email directly or view it on GitHub https://github.com/glaszig/SZTextView/pull/27#issuecomment-65170304.

glaszig commented 9 years ago

yeah, -initWithCoder does the job.