Reputation: 600
I have the following code block, as the content of my AppDelegate.h
of an iOS one view application:
//
// AppDelegate.h
// kompas
//
// Created by Attention8 Aps on 2/6/12.
// Copyright (c) 2012 Attention8. All rights reserved.
//
#import <UIKit/UIKit.h>
@class ViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) ViewController *viewController;
@end
This yields the error "Expected identifed or '('" on the line @class ViewController
I have tried comparing it with the AppDelegate.h from a newly started project, but I can't for the love of god spot the error. The mistake has arisen after tinkering with other files, but I can't seem to locate this issue.
Any help as to what could be the cause of this would be greatly appreciated.
Upvotes: 0
Views: 669
Reputation: 789
Try to open this file in vi. Sometimes invisible characters causes such errors.
Upvotes: 0
Reputation: 16725
It's probably a problem with another file. Try going through all your other classes and getting rid of any warnings/errors with them.
Upvotes: 2