iOS 5 Programming Cookbook source doesn't work

Discussion in 'iOS Programming' started by mikezang, Jan 7, 2012.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I just downloaded source in iOS 5 programming Cookbook, but I found all samples just show a blank screen as below, what can I do?

    By the way, I am using Xcode 4 and iOS SDK 5 in Mac OS X 10.6.8.
     

    Attached Files:

  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    That's not giving us alot dude..
    Tried setting breakpoints etc, to see where it blocks, because this is nice for us to see (you haven't given a title/author/what source though..).
    And you haven't showed any code, how can we even try helping?
     
  3. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #3
    Sorry, I thought all people knew this book, you can find it at http://shop.oreilly.com/product/0636920021728.do

    I downloaded source in chapter 14 from http://examples.oreilly.com/0636920021728/Chapter 14.zip

    I tried all projects in that zip file, can you help me? I don't think only me met this problem because this is a famous book what I think...
     
  4. phantax macrumors member

    Joined:
    Feb 2, 2009
    #4
    Have you bothered to look at the console?
    "Applications are expected to have a root view controller at the end of application launch"

    Also, what are you expecting to happen?
    Code:
    - (BOOL)            application:(UIApplication *)application
      didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
      
      [self addAlarmToCalendar];
      
      self.window = [[UIWindow alloc] initWithFrame:
                     [[UIScreen mainScreen] bounds]];
      
      self.window.backgroundColor = [UIColor whiteColor];
      [self.window makeKeyAndVisible];
      return YES;
    }
    
     
  5. mikezang thread starter macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #5
    Thanks for your explanation.
     

Share This Page