1.問題表現(xiàn)

狀態(tài)欄遮蓋.png
2.目標(biāo)

避免狀態(tài)欄遮蓋.png
3.解決辦法(使用top layout guide)
把第一個(gè)UI元素的頂部約束指定到top layout guide(直接拖線關(guān)聯(lián))

Top Layout Guide.png

設(shè)置.png
4.參考
https://developer.apple.com/library/ios/qa/qa1797/_index.html
https://developer.apple.com/library/ios/qa/qa1797/_index.html