Error Message

Discussion in 'iOS Programming' started by larswik, Oct 10, 2011.

  1. larswik macrumors 68000

    Joined:
    Sep 8, 2006
    #1
    What? I don't know what this is? I did make a mistake a couple weeks ago and deleted the .h file by mistake. I created a new .h file and recreated the header information which has worked fine while defining my. Now I am trying to add a new button using the CONTROL drag to link it. I don't know if having to rebuild that header has anything to do with this problem, or if it is something simple?
     

    Attached Files:

  2. Shawnpk macrumors 6502

    Joined:
    Jan 13, 2011
    Location:
    Los Angeles, CA
    #2
    Are the classes named exactly the same? Did you #import the header file in the implementation file?
     
  3. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #3
    Do you still have the .m file in your project? Is it named the same as the .h file?
     
  4. larswik thread starter macrumors 68000

    Joined:
    Sep 8, 2006
    #4
    Yes, it looks the same
    Code:
    //  Created by Lars Wikstrom on 9/29/11.
    //  Copyright 2011 Next Level Productions. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    @interface MoneyListViewController : UIViewController <UITextFieldDelegate> {
        
    }
    
    
    Code:
    /  Copyright 2011 Next Level Productions. All rights reserved.
    //
    
    #import "MoneyListViewController.h"
    #import "personalTableViewController.h"
    #import "MoneyListAppDelegate.h"
    #import "PrefsViewController.h"
    #import "BankViewController.h"
    
    @implementation MoneyListViewController
    
    - (void)dealloc
    {
    
        [super dealloc];
    }
    
    I know my #import "personalTableViewController.h" is lower case, I am unsure how to change that everywhere without screwing something up that that should not stop it. I did get it to work a different way. I typed it in first in the header file and then control dragged the button over the name until the name was highlighted and let go. I have never seen that error before.
     

Share This Page