简体   繁体   English

在Xcode中呈现视图的问题

[英]Problems with presenting views in Xcode

I hope you can help me with my actual problems with designing an iPhone-App in the latest xCode version. 希望您能在设计最新的xCode版本的iPhone-App时解决我的实际问题。

Here´s what I find a bit strange: 我发现有些奇怪:

I designed a new project with a Storyboard and a Navigation Controller. 我设计了一个带有情节提要和导航控制器的新项目。 Then I placed Objects like UILabels, ImageViews and so on. 然后,我放置了UILabels,ImageViews等对象。 No when I run the Project in the simulator (as well on the iPhone) I noticed the following: When the App loads all the in the View placed objects fall down from the top to take their defined place. 不,当我在模拟器中(以及在iPhone上)运行Project时,我注意到以下几点:当应用程序加载View中的所有对象时,放置的对象从顶部掉落到其定义的位置。 It takes maybe the quarter of a second, but its clearly to see. 它可能需要四分之一秒,但显然可以看到。 It also happens on all other views initiated from the root view controller 它也发生在从根视图控制器启动的所有其他视图上

So, what do I have to change that everything is at it´s fixed place without to fall down from the top at the start of the app? 那么,我该如何更改所有内容都在固定的位置而又不会在应用程序启动时从顶部掉下来?

I hope I described it good enough. 我希望我描述得足够好。 Actually I have no idea what´s going on there. 其实我不知道那是怎么回事。 I hope you can help me to fix this "problem". 希望您能帮助我解决此“问题”。 I´ve written some small Apps before, but I´ve never noticed a behavior like this. 我以前写过一些小型应用程序,但是我从未注意到这样的行为。

Got the solution: I´ve had to remove the animations on the main view... now it works proper! 找到了解决方案:我不得不删除主视图上的动画...现在可以正常使用了! :-) :-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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