ios - Change collection view constraints programmatically -


i have create collection view in storyboard , add constraints. need change collection view constraint specific condition , want programmatically in class. have iboutlet collection view. parameter needs changed?

  1. add constraints in collection view
  2. select constraint want modify, hold control , drag class
  3. when want constraint changed, type nameofyourconstraint.constant = 100 // int

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -