[self presentViewController:vc animated:YES completion:nil];
這是一段我們很熟悉的iOS跳轉代碼,由於幾年沒有寫iOS了,跳轉後的頁面很奇怪,沒有全屏顯示,更像是一個彈出框。
解決辦法:
vc.modalPresentationStyle = UIModalPresentationFullScreen;
增加以上設置即可。
[self presentViewController:vc animated:YES completion:nil];
這是一段我們很熟悉的iOS跳轉代碼,由於幾年沒有寫iOS了,跳轉後的頁面很奇怪,沒有全屏顯示,更像是一個彈出框。
解決辦法:
vc.modalPresentationStyle = UIModalPresentationFullScreen;
增加以上設置即可。