2014-05-24 3 views
1

안녕
내 클래스의 UITableView이 있고 난 내용이 흰색 상자 아래는이jQuery과 셀 이미지 뷰 문제

enter image description here

같은 화면을 얻고로드하려고 할 때를 볼 수 아니다 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{ 
} 

답변

4

쓰기가 설정 rowHeight가 셀의 디폴트의 높이를 설정하는 것과 같이, 테이블 내의 모든 셀에 디폴트의 인 세트 또한 일반 스타일 테이블의 맨 아래에 그려진 "여분"구분 기호를 관리하는 데 사용됩니다.

// Do any additional setup after loading the view. 
if ([_tableView respondsToSelector:@selector(setSeparatorInset:)]) { 
    [_tableView setSeparatorInset:UIEdgeInsetsZero]; 
} 
+0

확인 나 지금 – Bangalore

+0

더 ... 여전히이 – Bangalore

+0

_tabview를 작동하지 않는 것은 테이블보기 개체입니다, 귀하의 경우 self.tableView에있을 수 해보자. 그것을 시도하십시오 – Pawan