1
안녕
내 클래스의 UITableView
이 있고 난 내용이 흰색 상자 아래는이jQuery과 셀 이미지 뷰 문제
같은 화면을 얻고로드하려고 할 때를 볼 수 아니다 horizodal 구분선, 도와주세요.
이내 코드 :
아이폰 OS 7 이상에서가, 세포 분리 테이블 view.This 재산의 가장자리에 모든 방법을 연장하지 않는보기 한 부하
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1; //count of section
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [names count]; //count number of row from counting array hear cataGorry is An Array
}
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *MyIdentifier = @"service";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if (cell == nil)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:MyIdentifier]
;
}
// Here we use the provided setImageWithURL: method to load the web image
// Ensure you use a placeholder image otherwise cells will be initialized with no image
cell.imageView.frame=CGRectMake(5,10,50,60);
cell.imageView.image=[imaages objectAtIndex:indexPath.row];
cell.textLabel.text = [names objectAtIndex:indexPath.row];
cell.backgroundColor=[UIColor clearColor];
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 80;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
}
확인 나 지금 – Bangalore
더 ... 여전히이 – Bangalore
_tabview를 작동하지 않는 것은 테이블보기 개체입니다, 귀하의 경우 self.tableView에있을 수 해보자. 그것을 시도하십시오 – Pawan