테이블보기가 있습니다. 나는 배열을 표시하고있다. 내가 마지막 테이블 셀의 맨 아래로 이동하지 않는 tableview 스크롤 할 때. 그 일을 어떻게해야합니까?하단 스크롤이 테이블보기에서 작동하지 않습니다.
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return tableResourceArray.count;}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
NSString *cellIdentifier=[NSString stringWithFormat:@"CustomCell:%d",indexPath.row];
customcell *cell = (customcell *)[tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if (cell == nil) {
cell = [[customcell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
}
if(tableView==table) {
table.backgroundColor = [UIColor clearColor];
table.separatorColor=[UIColor clearColor];
NSDictionary *slug = [category objectAtIndex:indexPath.row];
NSLog(@"gggg:%@",slug);
cell.ctitle.text = [NSString stringWithFormat:@"%@", [slug objectForKey:@"title"]];
cell.ctitle.font=[UIFont fontWithName:@"Arial" size:12];
cell.cdate.text = [NSString stringWithFormat:@"Date:%@", [slug objectForKey:@"date"]];
cell.cdate.textColor=[UIColor colorWithRed:0.820 green:0.776 blue:0.526 alpha:1.000];
cell.ccontent.text = [NSString stringWithFormat:@"%@", [slug objectForKey:@"content"]];
}
tablview 프레임이란 무엇입니까? tableview 코드의 부모도 .. – ajay
table.frame = CGRectMake (0, 130, 320, 480); 이것은 내 테이블 뷰 프레임입니다 – gowtham
UINavigationCongroller를 사용하고 있습니까? – ajay