We Recommend

Programming in Objective-C Programming in Objective-C
Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming. The book makes no assumption about prior experience with object-oriented programming languages or with the C language (upon which Objective-C is based). And because of this, both novice and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C.


Ballyhoo


Posted By

buscarini on 03/28/08


Tagged

cocoa iphone


Versions (?)


Interface builder & iphone sdk


Published in: Objective C 


Para usar el interface builder con el iphone hay que crear una vista o una ventana, guardarla dentro del proyecto, y meter esta lĂ­nea en appdelegate en applicationDidFinishLaunching.


  1. La ventana:
  2. self.window = [[[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil] objectAtIndex:0];
  3.  
  4. La vista:
  5. self.contentView = [[[NSBundle mainBundle] loadNibNamed:@"MyView" owner:self options:nil] objectAtIndex:0];

Report this snippet 

You need to login to post a comment.