문제

I have a UIToolbar set up in my view controller that has a width of 768, extending across portrait view as I desire. But when I rotate to landscape, the toolbar maintains the same width, instead of extending to 1024 pixels.

I'm probably missing something obvious, but I can't seem to figure this out. Any ideas? Thanks.

도움이 되었습니까?

해결책

You need to add Horizontal Space constrains as below:

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top