Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/116.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UITableView和导航控制器_Ios_Objective C - Fatal编程技术网

Ios UITableView和导航控制器

Ios UITableView和导航控制器,ios,objective-c,Ios,Objective C,我试图做一个简单的导航控制器,由UITableView控制。每当我选择其中一行时,它都应该转到下一张幻灯片并在那里设置动画。每当我实现这段代码时,动画只进行了一半,然后冻结,然后消失 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { description* desc=[[description alloc] init];

我试图做一个简单的导航控制器,由UITableView控制。每当我选择其中一行时,它都应该转到下一张幻灯片并在那里设置动画。每当我实现这段代码时,动画只进行了一半,然后冻结,然后消失

- (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
?如果是这样,那么这段代码没有问题,而您的问题在其他地方,因此您需要发布更多代码。让类名以小写字母开头对我来说真的很奇怪