Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

iOS iOS 5 Programming Cookbook source doesn't work

mikezang

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

Attachments

  • Screen shot 2012-01-08 at 1.34.44.jpg
    Screen shot 2012-01-08 at 1.34.44.jpg
    150.7 KB · Views: 81

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?
 
Comment

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...
 
Comment

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;
}
 
Comment

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.
 
Comment
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.