views:

55

answers:

2

I am really confused - I am implementing a change to a button in several views and it works in all but 1 of them and I can't figure out what is different.

I have it declared in the .h file :

    UIButton *doSomethingButton;
}

@property (nonatomic, retain) IBOutlet UIButton *doSomethingButton;

But then in the .m file I get the error 'No declaration of property 'doSomethingButton' found in the interface' in the @synthesize line and then again on the lines where it is actually used. I made sure the .m file imports the .h file. I made sure that the outlet is used correctly in Interface Builder. What else could be causing the problem?

A: 

Odd; check very carefully for misspellings. I've also been occasionally burned by invisible characters ending up in the source.

Do other @property declarations work in the same pair of files?

bbum
A: 

Are you sure you are doing the following in your .m file (ensure this is inside the implementation block):

@sythensize doSomethingButton
raidfive
I checked all of this stuff - just had to completely recreate the viewcontroller and then it worked.
Rob
Thanks is very strange, but good to hear!
raidfive