Position of my UIButton are varying for in all simulator

后端 未结 1 767
情深已故
情深已故 2021-01-21 10:12

I am under one project.In that I created one uibutton at bottom of my viewcontroller using code (Not via storyboard).But when i run my app,my uibutton are placing in differents

相关标签:
1条回答
  • 2021-01-21 10:37

    As per all comments about your question.You need to set constraint for your UIButon.Use only centre x,centre y because that will helpfull to see your layout in all devices. And there is a already solution for your problem.see these below links for setting auto layout for UIButton

    Link 1

    Link 2

    Link 3

    Sure this will help you !

    0 讨论(0)
提交回复
热议问题