iOS Question Designer Question

tufanv

Expert
Licensed User
Longtime User
Hello,

In designer i have :
Code: Copy
btn0.Left=0
btn0.Width=50%x
btn0.Height=10%y
btn0.Top=50%y-btn0.height
btnvirgul.Left=50%x
btnvirgul.Width=25%x
btnvirgul.Height=10%y
btnvirgul.Top=50%y-btn0.height
btnesittir.Left=75%x
btnesittir.Width=25%x
btnesittir.Height=10%y
btnesittir.Top=50%y-btn0.height

According to code when 1 button ends another buttons start just next to it. In abstract designer and my phone i can see the buttons fits perfectly. (while conencted with designer and bridge ) but after i run the app in debug or release first two buttons are ok but third button (btnesittir) start with a little space after second button . Why is this behaviour ? Am i doing stg wrong ?

ty
 
We compared how the app is running on both devices with Jan. His iphone4 is showing everything perfect while my iphone6 akes gaps between some items.
 
Upvote 0
Dear tufanv

why you use some extra calculation like -btn0.height and not using directly 40%y ?

maybe one of these tips help you :


- check your border button maybe it must be "0" and then you could use 100% width for them

- you use 100% of your width for putting 3 buttons side by side , try to make the width of two buttons 24% and test it

- try to put them as child in a parent panel that you define with 10% height and 100%x width and panel.top = 40%y
then just put 3 buttons in panel and set the top of them Zero

- try to move the top properties in designer under the left properties and test it
 
Upvote 0
Dear tufanv

why you use some extra calculation like -btn0.height and not using directly 40%y ?

maybe one of these tips help you :


- check your border button maybe it must be "0" and then you could use 100% width for them

- you use 100% of your width for putting 3 buttons side by side , try to make the width of two buttons 24% and test it

- try to put them as child in a parent panel that you define with 10% height and 100%x width and panel.top = 40%y
then just put 3 buttons in panel and set the top of them Zero

- try to move the top properties in designer under the left properties and test it

Hello
Tahnks for advices. But if i put the same code in panel_resize works perfect. This means that there should be problem in a designer somewhere instead of the code.
 
Upvote 0
Back
Top