Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/08/2011, 09:55
ramondevesa
 
Fecha de Ingreso: noviembre-2010
Mensajes: 234
Antigüedad: 13 años, 5 meses
Puntos: 2
No me va el código

Buenas, estoy realizando el manual que he visto en Maestros del Web sobre iPhone y me he quedado estancado en el primer ejercicio, a la hora de compilar el código que se introduce en el manual me lanza dos errores, les dejo el código en el cual me tira el error,
Código iPhone:
Ver original
  1. //
  2. //  miAppViewController.m
  3. //  miApp
  4. //
  5. //
  6.  
  7. #import "miAppViewController.h"
  8.  
  9. @synthesize miEtiqueta;
  10. -(IBAction)cambiarEtiqueta{
  11. miEtiqueta.text = @"Bazzinga!";
  12. }
  13. -(void)dealloc{
  14. [miEtiqueta release];
  15. [super dealloc];
  16. }
  17.  
  18. @implementation miAppViewController
  19.  
  20.  
  21.  
  22. /*
  23. // The designated initializer. Override to perform setup that is required before the view is loaded.
  24. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
  25.     if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
  26.         // Custom initialization
  27.     }
  28.     return self;
  29. }
  30. */
  31.  
  32. /*
  33. // Implement loadView to create a view hierarchy programmatically, without using a nib.
  34. - (void)loadView {
  35. }
  36. */
  37.  
  38.  
  39. /*
  40. // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
  41. - (void)viewDidLoad {
  42.     [super viewDidLoad];
  43. }
  44. */
  45.  
  46.  
  47. /*
  48. // Override to allow orientations other than the default portrait orientation.
  49. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
  50.     // Return YES for supported orientations
  51.     return (interfaceOrientation == UIInterfaceOrientationPortrait);
  52. }
  53. */
  54.  
  55. - (void)didReceiveMemoryWarning {
  56.     // Releases the view if it doesn't have a superview.
  57.     [super didReceiveMemoryWarning];
  58.    
  59.     // Release any cached data, images, etc that aren't in use.
  60. }
  61.  
  62. - (void)viewDidUnload {
  63.     // Release any retained subviews of the main view.
  64.     // e.g. self.myOutlet = nil;
  65. }
  66.  
  67.  
  68. - (void)dealloc {
  69.     [super dealloc];
  70. }
  71.  
  72. @end

Gracias por todo un saludo.