you can use btn.height replace of btn.frame.size.height