You may want to use CGRectIntegral to prevent non-integer frame valuations