When you create frameLayout its content is aligned. frameLayout is added to UIView like another common UIView. But how to set frameLayout position and size in outer container? Should I use autolayout or autoresizing mask?