iPhone 開発と Objective-C は初めてなので、既に質問されていたらすみません。私はいくつかのコードに取り組んできましたが、何度もこのエラーがポップアップし続け、予想される識別子または '(' が NSInteger の前に表示されます。
#import "tableTutViewController.h"
@implementation tableTutViewController;
(NSInteger)tableView:(UITableView)tableView numberOfRowsInSection:(NSInteger)section{
return tutorials.count;
}
- (void)viewDidLoad {
NSString * theFile = [[NSBundle mainBundle]
pathForResource:@"TPL" ofType:@"plist"];
tutorials = [[NSArray alloc] initWithContentsOfFile:theFile];
[super viewDidLoad];
}
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
}
@end