UISlider Handle Changes Width on Different Size iPads

梦想的初衷 提交于 2019-12-06 15:48:38

Through trial & error I discovered this was a "timing issue". The handle image rect was being drawn too soon in viewDidLoad.

My "hack" solution was to place the function that draws the slider handle into the button action function which calls the views to appear (which has the vertical slider inside it).

Adding a timing delay would probably solve the problem just the same. Both are hack solutions, and I still lack the understanding of why the proper screen size is not recognized prior to viewDidLoad being called in the VC which contains the vertical slider...

However, this solved the problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!