ios - Bottom space constraint proportional to height of view -


i have view @ bottom of view controller has following constraints:

  • align centre horizontally
  • fixed aspect ratio (1:1)
  • proportional width width of view controller
  • bottom space of -50

how make bottom space constraint proportional height of view using auto layout? meaning if height of view 250, bottom space -50, if height 300, bottom space -60, , on (the proportion fixed @ 0.2)?

use multiplier value. want bottom of view 0.8 times bottom of superview.

enter image description here


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -