UITableViewCell的寬度的修改

Cell寬度的修改
只要重寫tableViewCellframesetter方法即可統一修改cell的尺寸。

  - (void)setFrame:(CGRect)frame
  {
        frame.origin.x = LeftSpace +2*HorizontalSpace;
        frame.size.width = MainScreenWidth - frame.origin.x - HorizontalSpace;
        [super setFrame:frame];   
   }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章