i am making a very complicated app with a lot of classes. my app worked great and i worked on it for the last month. the last time i worked on it i added a function and it worked great, i saved the app and ran it a few times since and it worked. the last time i turned my computer on, it prompted me that an update for xcode is available. i updated it, and since then every time i run my app it runs with no errors but on ios simulator it shows a black screen. what can i do? i worked really hard on that app. thanks for the help in advance.
我正在制作一个非常复杂的应用程序,有很多课程。我的应用程序运行良好,我在上个月工作。我最后一次工作,我添加了一个功能,它工作得很好,我保存了应用程序并运行了几次,因为它工作。我最后一次打开电脑,它提示我可以获得xcode的更新。我更新了它,从那以后每次我运行我的应用程序它运行没有错误,但在ios模拟器上它显示黑屏。我能做什么?我在那个应用程序上非常努力。我在这里先向您的帮助表示感谢。
2 个解决方案
#1
0
There's few issues that could happened, withou detailed description of this issue, you can try following solutions:
可能发生的问题很少,有关此问题的详细说明,您可以尝试以下解决方案:
- reset simulator
- check if your initial controller is set up in storyboard(select controller and press attribute inspector, select is initial view controller):
检查您的初始控制器是否在故事板中设置(选择控制器并按属性检查器,选择是初始视图控制器):
- if you're setting initial view controller programmatically, check if that controller is not nil in app delegate
如果您以编程方式设置初始视图控制器,请检查该控制器在app delegate中是否为nil
another tip - try to use UI debugger, that helps a lot:
另一个提示 - 尝试使用UI调试器,这有很大帮助:
#2
0
Any debug messages in the Xcode output? That usually will give a clue.
Xcode输出中的任何调试消息?这通常会给人一种线索。
One thing I can think of, is that in your
我能想到的一件事就是你的
- (void) applicationDidFinishLaunching:(UIApplication*)application
- (void)applicationDidFinishLaunching :( UIApplication *)应用程序
delegate, try setting the window's root view controller to your view controller. Example:
委托,尝试将窗口的根视图控制器设置为视图控制器。例:
[window setRootViewController:viewController];
[window makeKeyAndVisible];
Again, the Xcode debug output will confirm if this is indeed the case though.
同样,Xcode调试输出将确认是否确实如此。
#1
0
There's few issues that could happened, withou detailed description of this issue, you can try following solutions:
可能发生的问题很少,有关此问题的详细说明,您可以尝试以下解决方案:
- reset simulator
- check if your initial controller is set up in storyboard(select controller and press attribute inspector, select is initial view controller):
检查您的初始控制器是否在故事板中设置(选择控制器并按属性检查器,选择是初始视图控制器):
- if you're setting initial view controller programmatically, check if that controller is not nil in app delegate
如果您以编程方式设置初始视图控制器,请检查该控制器在app delegate中是否为nil
another tip - try to use UI debugger, that helps a lot:
另一个提示 - 尝试使用UI调试器,这有很大帮助:
#2
0
Any debug messages in the Xcode output? That usually will give a clue.
Xcode输出中的任何调试消息?这通常会给人一种线索。
One thing I can think of, is that in your
我能想到的一件事就是你的
- (void) applicationDidFinishLaunching:(UIApplication*)application
- (void)applicationDidFinishLaunching :( UIApplication *)应用程序
delegate, try setting the window's root view controller to your view controller. Example:
委托,尝试将窗口的根视图控制器设置为视图控制器。例:
[window setRootViewController:viewController];
[window makeKeyAndVisible];
Again, the Xcode debug output will confirm if this is indeed the case though.
同样,Xcode调试输出将确认是否确实如此。