简体   繁体   中英

Xcode App Simulates and Launches Black Screen

When I launch my iOS app it seems that I only get a black screen on both device and simulator. I'm running Xcode 4.4.1 and the iOS sim is set up for 5.1. Is there any information you can give to help me out here? I'm pretty sure it's the viewController, but I'm not sure.

No background image No change in colors Basic App (Text boxes/Ad Bar/Nav Bar/Table Cells) - All objects are available in Xcode (haven't messed with the coding yet)

screen cap img link: http://imgur.com/T4QUI

Code to come!

I've been working on this app all morning and I think I figured out my problem. So it turns out the problem was the "Ad BannerView" that I had put on the main View. Deleted it and it simulates just fine.

Not sure what caused it to do that, and if anyone knows, I'd very much appreciate a little bit more learning.

If you guys have anymore advice for me on here or in Xcode I'd love to hear it.

Thanks a ton for the help guys!

i Know i am late but i am posting it, If it could help someone else.

You may probably removed your initial viewController, You can set it by followed

  1. Go to main storyboard
  2. select viewController you want to show up first
  3. in attributing inspector you will see "Is Initial ViewController" with a checkbox
  4. mark is checked(tick sign) and give it a run.

You have to provide image for that the size of image for iPhone should be 320,480 and 640 , 960 with name Default.png , Defauld@2x.png , and image should on root of aproject. or you can select your image form XCode. 选择Projecte启动图像和图标

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