ios - Dynamically change x and y of a button -


i know if there possible way through can dynamically change position of uibutton depending on screen size of phone(4s, 5-series , 6)

thanks in advance.

there multiple ways solve issue:

1) autolayout can specify rules describe how views relate each other. allow app intelligently adapt screen size, if thoughtfully implemented.

2) can check device version @ runtime , programmatically layout view appropriately.

1 preferred solution, , best practice on ios.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -