I am creating description label in which i want my description label height should be depend on the value rounded from the expression
NSString *description = [dic objectForKey:@"des"];
UIFont *font = [UIFont boldSystemFontOfSize:8];
CGSize desSize = [description sizeWithFont:font];
float hgt = desSize.width / userView.frame.size.width;
i want the value of hgt should be exact number like if value of output is 0.1 then it should give me value of hgt as 1, another like if value of o/p of devision is 3.3 then hgt should become as 4.
Please help me to solve this problem
Use
ceil()to round up.