---
title: "Autoresizing mask and frames"
slug: autoresizing-mask-and-frames
section: tech
date: 2015-05-16T13:42:00.000Z
canonical: https://roland.leth.ro/blog/tech/autoresizing-mask-and-frames
---

Now it seems obvious, and I feel silly about it, but setting a view's `autoresizingMask`'s before setting its `frame` or `bounds`, makes the resizing not work properly.
