私はiPhoneの開発とObjective-Cの新機能ですので、これは既に質問されています。 NSIntegerが期待される前に「(」私に期待される識別子を伝えるポップアップか。あなただけのダッシュと星が欠けているよう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
これは、私がメソッドのパラメータとしてオブジェクトを使用することができないということを私に伝える別のエラーを与えます。 – user1359673
心配しないで、素早い返事をいただきありがとうございました。 – user1359673
答えを正解とマークする – Mario