The Interface File (.h)
The interface file (.h) of a class holds a list of all of the instance variables and methods.
Example 1:
#import <UIKit/UIKit.h>
@interface MyClassName
{
// instance variables go here
IBOutlet UITextField *theText;
int x;
double z;
}
// method headers go here
-(IBAction) respondToTap:(id) sender;
-(void) convertTemperature;
@end
Example 2:
#import <UIKit/UIKit.h>
@interface MyClassName : UIImageView
{
// instance variables go here
NSString *image;
float x;
float y;
}
// method headers go here
@end