xcode - IOS Auto Lay out dynamic leading and trailing constraints -


how can set dynamic leading , trailing constraints give dynamic width , height through percentage of screen size.

try this
add below property in viewcontroller

@property (strong, nonatomic) iboutlet nslayoutconstraint *cnstviewleading; @property (strong, nonatomic) iboutlet nslayoutconstraint *cnstviewtrailing; 

then set outlet leading , trailing ......


and

use this

//    replace value whatever want 0     self.cnstviewleading.constant = 0;     self.cnstviewtrailing.constant = 0; 

Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -