解決ios9 中UITableView 的Cell 自動縮進問題

ios9又引入了新的API,對於以前版本的UITableView,Cell會自動縮進,解決辦法很簡單:

    if ([_myTableView respondsToSelector:@selector(setCellLayoutMarginsFollowReadableWidth:)]) {
        _myTableView.cellLayoutMarginsFollowReadableWidth = NO;
    }


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章