iOS iOS 5 Programming Cookbook source doesn't work

jnoxx

macrumors 65816
Dec 29, 2010
1,343
0
Aartselaar // Antwerp // Belgium
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?
 

mikezang

macrumors 6502a
Original poster
May 22, 2010
772
1
Tokyo, Japan
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?
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...
 

phantax

macrumors member
Feb 2, 2009
72
0
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...
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;
}
 

mikezang

macrumors 6502a
Original poster
May 22, 2010
772
1
Tokyo, Japan
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;
}
Thanks for your explanation.