@dhanya : for frame related variable, use CGFloat instead of int.