【发布时间】:2013-12-17 16:55:22
【问题描述】:
当我输入时
-(NSInteger) numberOfSectionsInTabelVieuw:(UITableView *)tabelVieuw{
return 1;
}
-(NSInteger)tabelVieuw:(UITableView *)tabelvieuw numberOfRowsInSection:(NSInteger)section{
return [soundTitles count];
}
-(UITableViewCell *)tabelview:(UITableView *)tabelvieuw cellForRowATIndexPath:(NSIndexPath *)Indexpath
{
static NSString *CellIndentiefier =@"cell";
UITableViewCell *cell =[tabelVieuw dequeueReusableCellWithIdentifier:CellIndentiefier];
if(cell ==Nil) {
cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIndentiefier];
if([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
cell.accessoryType= UITableViewCellAccessoryDisclosureIndicator;
}
}
//CONFUGURE THE CELL
cell.textLabel.text =[soundTitles objectAtIndex:Indexpath.row];
;
}
我总是在最后一个} 收到警告。
它说:control reaches, end of non-void function
【问题讨论】:
-
顺便说一句,你拼错了所有的方法名称,所以它们都不会被调用。
标签: objective-c xcode clang