In the same file:
Where name and details are both UILabel.
The program fails at compiling with the error:
@"Incompatible type for argument 2 of CGRectMake"
I've been trying this, that and the other. What's going on? All arguments of CGRectMake supposedly take CGFloat.
Code:
-(CGFloat) lowerBound:(UIView*) v
{
return v.frame.size.height + v.frame.origin.y;
}
Code:
details.frame = CGRectMake(0, [self lowerBound:name], 0, 0);
Where name and details are both UILabel.
The program fails at compiling with the error:
@"Incompatible type for argument 2 of CGRectMake"
I've been trying this, that and the other. What's going on? All arguments of CGRectMake supposedly take CGFloat.