iOS App Development Book/Video Series

General Category => Swift Programming Language => Topic started by: Mike on June 28, 2015, 05:17:33 PM

Title: IOS Simulator goes Black - Then White - Displays nothing
Post by: Mike on June 28, 2015, 05:17:33 PM

  I started chapter 3 and entered the code:
var myString: String = "Swift"
      self.lblDemo.text = myString”

( The first of trying any code for this book)

  I ran the simulator and it went black, a couple min later it went white.  No text shows up.

I did read through issues on some of the other books and found. An issue with the Storyboard not being tied to the project.
Following along the same line..
 I had ( main.storyboard ) in the swift demo.
Tried changing it to (StoryBoard.storyboard) then (mainStoryBoard.storyboard) no difference.  I took a shot and it didn't work.

I haven't found any other references on the web to try. I hit a wall trying to figure out this one.
Title: Re: IOS Simulator goes Black - Then White - Displays nothing
Post by: kjmcneish on June 28, 2015, 11:08:26 PM
Mike,

I recommend trying "Main.storyboard" (with an uppercase "M" and a lowercase "s").

If that doesn't work, you can compress your project (zip file) and send it to me on the forum by attaching it to your post.

All the best!
Kevin
Title: Re: IOS Simulator goes Black - Then White - Displays nothing
Post by: Mike on June 29, 2015, 08:08:27 PM
Kevin,

     I made the modifications but still have the same blank white screen.  It takes a full minute for that to happen.  I have a 2011 machine, I hope it's not too old. 

  I attached the swift demo file.  I appreciate the assistance!
Title: Re: IOS Simulator goes Black - Then White - Displays nothing
Post by: kjmcneish on July 01, 2015, 03:00:03 PM
I checked out your project and it's working fine for me. I recommend checking out this topic:

http://iosappsfornonprogrammers.com/forum/index.php?topic=1648.0 (http://iosappsfornonprogrammers.com/forum/index.php?topic=1648.0)

Let me know if this works for you!
Kevin