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

关于弹出输入框的问题 #1

Open
thebestduleisi opened this issue Dec 19, 2018 · 2 comments
Open

关于弹出输入框的问题 #1

thebestduleisi opened this issue Dec 19, 2018 · 2 comments

Comments

@thebestduleisi
Copy link

弹出的输入框没有办法改变大小,希望您给个建议

@kukumaluCN
Copy link
Owner

改变样式borderStyle,系统是支持的,但是直接改变尺寸,没有用,很多属性设置,得在alert展示后才能访问,你可以在下面这个block里尝试改变对应textField的尺寸,是生效的,但是布局是乱的,还得改变图层的布局,alert的视图结构非常复杂的,改动这个不太实际,可能有一些私有api可以做到,毕竟“捷径”app里的弹窗的输入框,就是个textView而不是textField,那个做输入换行什么的都会很容易。
不过对于我们这些开发者,与其花费精力与研究系统的实现,hook它,还不如自定义一个。。。
[self presentViewController:alert animated:YES completion:^{

}];

@thebestduleisi
Copy link
Author

好的,感谢

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