What's the best way to achive this? For example I have a UINavigationBar, UITableView. What should I dynamic put navbar up the screen and tableview below, without hardcode it? Of course i currently have something like: self.view.bounds.origin.y - 20.0, but this is a bad solution i think.