Closed ahmeij closed 10 years ago
Certainly being able to change/access identifier
is handy, but as you point out, constraints aren't easily found in the get_ns_constraints
method... but you should be able to get to them from the UIView#constraints
method directly! You should be able to animated them that way, too, I think...
c = a(25).constraints.find { |constraint| contsraint.identifier == 'my_id' }
Add identifier as a configurable option.
use like this (console example)
Weird unrelated fact, the a(25).constraints is always [](blank array) and does not contain the constraints.
This way constraints can be programmatically looked up. Unfortunately changing them dynamically does not work because the get_ns_constrains does not list the constraints by reference :(