I wish to create object of one class into another
I have 2 classes
- MyviewControler
- Checkout
I want to import Checkout into MyviewController
#import "Checkout.h"
@interface MyViewController : UIViewController <UIImagePickerControllerDelegate>
{
Checkout *checkout;
}
@property (nonatomic) Checkout *checkout;
@end
It is giving me error “Unknown type name checkout”
In MyViewController.h, before @interface add:
In MyViewController.m, add: