Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG #2

Open
cocoZ opened this issue Jan 11, 2016 · 5 comments
Open

BUG #2

cocoZ opened this issue Jan 11, 2016 · 5 comments

Comments

@cocoZ
Copy link

cocoZ commented Jan 11, 2016

iOS9.2、
iPhone5C/
首次显示时placeholdLabel不显示,打印frame为5、7、0、0
输入文字后再删除,正常显示
layoutSubviews中给的frame正常,
不知道为什么

@burning-git
Copy link
Owner

请问是怎么初始化的呢。。。能贴下你怎么写的吗?

@cocoZ
Copy link
Author

cocoZ commented Jan 13, 2016

我关联了Xib, IBOutlet中只设置了placeholder ,
self.inputTextView.textColor = Global_SubHeadColor;
[self.inputTextView setPlaceholderColor:Global_ThreeLevelColor];
inputTextView.placeholder = @"xxxxxxxxx";

@burning-git
Copy link
Owner

demo里面有提示 XIB 的 textView。。你对照看看呢,,目前没发现你的代码有问题呢

@cocoZ
Copy link
Author

cocoZ commented Jan 13, 2016

Demo中api是 支持到iOS8的, 我在iOS9.2系统中有问题, iOS8.2没问题, layoutsubviews每次设置的frame也是正确的,但是每次首次出现size为0, 很费解,,

我用约束重新对 placeholderLabel做了适配,已经好了

@burning-git
Copy link
Owner

喔喔。这个 我看看。。做一个通用版本!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants