Ios UITableView和导航控制器
我试图做一个简单的导航控制器,由UITableView控制。每当我选择其中一行时,它都应该转到下一张幻灯片并在那里设置动画。每当我实现这段代码时,动画只进行了一半,然后冻结,然后消失Ios UITableView和导航控制器,ios,objective-c,Ios,Objective C,我试图做一个简单的导航控制器,由UITableView控制。每当我选择其中一行时,它都应该转到下一张幻灯片并在那里设置动画。每当我实现这段代码时,动画只进行了一半,然后冻结,然后消失 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { description* desc=[[description alloc] init];
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
description* desc=[[description alloc] init];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
[self.navigationController pushViewController:desc animated:YES];
}
有人能帮忙吗?提前谢谢。我不知道这是不是同样的问题,但类似的事情发生在我身上。问题是,我推送的
UIViewController
的UIView
的backgroundColor
很清晰,这导致动画看起来很奇怪,因为我们可以看到推送的UIViewController在下面
在按下的
UIViewController
(在我的例子中为白色)的UIView
上设置backgroundColor
,解决了问题说明是a类UIViewController
?如果是这样,那么这段代码没有问题,而您的问题在其他地方,因此您需要发布更多代码。让类名以小写字母开头对我来说真的很奇怪