i using auto layout viewcontroller know how define gap between 2 views using constraints programmatically. want when screen size increase, increase gap also. because uiviewsare positioned in iphone 4s , 5s in 6 , 6 plus positioned in small area of screen. know adding multiplier can set aspect ratio of view but, how increase gap between 2 views when screen hight increase.
update

let image,, there logo above please login label.
this verticle position constraint
v:|-70-[title]-130-[lblfirst]-0-[lblsecond]-20-[textusername]-10-[txtpassword]-10-[btnlogin] this title image 130pix above please login label. want increase 130 when comes iphone 6 , 6 plus
take uiview alpha 0 , clear color , use instead of gap , use aspect ratio view used gap , top , bottom or left , right whatever situation views between whom want make gap dynamic. , need add more alignment constraints gapview work. not found other method have used method everywhere in projects , working fine. think uiview clear color , alpha 0 not effect screen or performance in way. can use this.
here example if have 2 text fields vertically , want increase gap between them dynamically take view between exact same width of text field , add constraints.
1) top of gapview upper text field.
2) bottom of gapview below text field.
3) equal width text field or leading , trailing superview or main view.
4) proportional height main view(you can add constraint adding equal height subview of superview , changing multiplier);
and gapview increase , decrease accordingly.
Comments
Post a Comment