hello i have the code below on my .h file
import <UIKit/UIKit.h>
@interface NSFont : NSObject <NSCoding> {
}
@end
@interface NSParagraphStyle : NSObject <NSCoding> {
}
@end
and i get that error :
error: duplicate interface definition for class ‘NSParagraphStyle’
i have no includes and no duplicates as pointed by some users
main.m imports
#import <UIKit/UIKit.h>
pref
#ifdef __OBJC__
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#endif
NSParagraphStyle was added in the latest (unreleased) version of iOS. So you don’t need to define it yourself. You probably need to change the name, don’t use NS as prefix in that case.