我正在使用此链接中的uitableView幻灯片菜单IOS-Slide-Menu;我尝试在细胞内输入图像以配合细胞;我使用了一些代码
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"rightMenuCell"];
switch (indexPath.row)
{
case 0:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-exr"];
break;
case 1:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-Fooj"];
break;
case 2:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-less.png"];
break;
case 3:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-Ped.png"];
break;
case 4:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-Ramadan.png"];
break;
case 5:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-risk.png"];
break;
case 6:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-travel.png"];
break;
case 7:
cell.imageView.image = [UIImage imageNamed:@"Sidebutton-Haj.png"];
break;
}
cell.backgroundColor = [UIColor clearColor];
return cell;
}
屏幕上显示的图像不在右边;我需要在右边制作图像
答案 0 :(得分:1)
我认为它与侧面菜单控制器有关,右侧菜单与前面的视图重叠。我建议你试试
MMDrawer:https://github.com/mutualmobile/MMDrawerController SWRevealViewController:https://github.com/John-Lluch/SWRevealViewController
用于侧边菜单选项