2011-12-28 11 views
0

私は、各tableviewcellのcontentViewのサブビューとしてUIViewを追加しています。私はいくつかの大きな問題を抱えています。UIViewをtableviewcellのcontentViewに追加する

何をしているのかのスクリーンショットを添付しました。 http://i44.tinypic.com/11kw0ms.jpg 各セルの下部にある黒いバーはそこには存在しません。

HERESに私のコード:

ヘッダー

@class CalendarCell; 
@interface ...{ 
    CalendarCell *calCell; 
} 

実装

#import "CalendarCell.h" 

...In the cellForRowAtIndexPath method 
    cell.backgroundColor = [UIColor clearColor]; 
    calCell = [[CalendarCell alloc]initWithNibName:@"CalendarCell" bundle:nil]; 
    [calCell.view setFrame:CGRectMake(0, 0, 320, 60)]; 
    [cell.contentView addSubview:calCell.view]; 
    [calCell release]; 
    return cell; 

答えて

0

はあなたのセルの高さを増やします。

関連する問題