I'm trying to set a constraint in Auto Layout.
This:
self.myHeightConstraint = 0.0f;
gives me this error:
Assigning to 'NSLayoutConstraint *' from incompatible type 'float'
Setting it to 0 gives no errors but I'm not sure if that's doing what I want it to do. Basically I want to set the height of an item in the View to 0.
Looking at the docs I see this on creating a Constraint:
+ (NSArray *)constraintsWithVisualFormat:(NSString *)format
options:(NSLayoutFormatOptions)opts
metrics:(NSDictionary *)metrics
views:(NSDictionary *)views
but not sure how I'd use it.