tamamı tableViews
property
SeparatorInset
saygı değildir. Hepsi iOS 7
üzerinde çalışıyordu, ama artık değil.Özel UITableView ayırıcısı, iOS 8'de storyboard'larla çalışmaz. <code>Custom</code> - - <code>storyBoard</code> üzerinde <code>left = 0</code> benim app
Ben uygulamak yöntemlerinin altındaki iki: Bu doğru çalıştığından
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
// iOS 7
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsZero];
}
// iOS 8
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsZero];
}
}
-(void)viewDidLayoutSubviews
{
// iOS 7
if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {
[self.tableView setSeparatorInset:UIEdgeInsetsZero];
}
// iOS 8
if ([self.tableView respondsToSelector:@selector(setLayoutMargins:)]) {
[self.tableView setLayoutMargins:UIEdgeInsetsZero];
}
}
, ben sadece daha basit şekilde storyboard
bu ayarı devam edemez neden anlamıyorum.
Herhangi bir düşünce?
Peki, teşekkürler. ama kod açısından, kodum iyi çalışıyor. Ayırıcı girintisini herhangi bir kod olmaksızın film şeridinde ayarlayabilmek istedim. Ancak, iOS 8'de çalışmıyor gibi görünüyor. – Jorge
Ben de bu sorunu yaşıyorum. Paraya çevirebileceğim bir radar mı yaptın? –