Я использовал MFSideMenu для отображения моих пунктов меню. Но я не знаю, почему он показывает мне черную линию в конце.Удалить черный цвет с MFSideMenuController (правая сторона)
Как удалить черную часть.
Вот изображение, что появляется в конце
я использовал https://github.com/mikefrederick/MFSideMenu интегрировать MFSideMenu.
Это мой код для Sidemen
-(void) viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = CustomPinkColor;
MenuArray =[NSArray arrayWithObjects:@"Knects",@"Settings",@"Share",@"About",nil];
//tableView.backgroundColor = CustomPinkColor;
tableView.alwaysBounceVertical = NO;
[tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection: (NSInteger)section
{
return MenuArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.backgroundColor=CustomPinkColor;
cell.textLabel.textColor=[UIColor blackColor];
}
cell.textLabel.text = [MenuArray objectAtIndex:indexPath.row];
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return 40;
}
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section
{
UIView *colorView = [[UIView alloc]init];
colorView.backgroundColor = CustomPinkColor;
return colorView;
}
Это работает, но мой список теперь не виден @Sachin –
я испытал в этом кодовой https://github.com/mikefrederick/MFSideMenu. Он работает там. – SachinVsSachin
Вы используете автозапуск в режиме просмотра списка? – SachinVsSachin