) iPhone 개발 및 Objective-C에 익숙하지 않으므로 이미 질문을 받으면 실례합니다. 일부 코드를 작업하고 있으며이 오류는 계속 발생합니다. NSInteger가. 예상 그냥 대시와 스타 누락있는 것처럼예상 식별자 또는 '(NSInteger before 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