简体   繁体   中英

Xcode: Autolayout not working correctly

I've got this weird bug in my application. When I load up my app on the simulator or an iDevice and I go to the pageControl page the layout is doing weird things.

I use the pagecontrol pages for a calendar view, so if I load it up I see this

第一视角

That's all good, but when I scroll down (or up) the layout changes a bit

滚动时

If the scrolling is done and I'm on the next page the layout readjust itself and is then in it's good state

第二页

So I don't know where this has gone wrong but of someone knows I would be very grateful! I'm using auto-layout in this page and on every simulator size I get this same problem.

如果您使用自动布局来放置垂直线,那么我建议您将其位置设置在单元格左侧而不是标签右侧在单元格左侧。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM