present

如何在present出来的viewController里使用push方法

一世执手 提交于 2019-12-05 04:29:02
MenuViewController * menuViewController = [[ MenuViewController alloc ] init ]; menuViewController.delegate = self; UIViewController * controller = self.view.window.rootViewController; controller.modalPresentationStyle = UIModalPresentationCurrentContext; menuViewController.view.backgroundColor = [UIColor clearColor]; menuViewController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; UINavigationController * jackNavigationController = [[UINavigationController alloc] initWithRootViewController:menuViewController]; imageNamed:@"navigationBar_bg.png"] forBarMetrics:UIBarMetricsDefault

VirtualBox下Centos6 配置eth0 提示Device does not see...

荒凉一梦 提交于 2019-11-28 20:33:15
故障现象 重启网络: service network restart 得到以下提示信息: Shutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ] Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [ FAILED ] 解决问题的过程 运行ifconfig命令查看网卡设备: ifconfig -a 我的到了以下信息: 只出现了eth1而没有出现eth0, 然后通过查看虚拟机的网卡配置,我们可以得到网卡的mac地址: 而后通过查看 /etc/sysconfig/network-scripts/ 文件夹下的网卡配置: ll /etc/sysconfig/network-scripts/ | grep "ifcfg-" 我发现可以能得到ifcfg-eth0的信息: 尝试把ifcfg-eth0重命名成ifcfg-eth1,并且把文件里的 DEVICE 参数值从 eth0 改成 eth1 ,重启网络。至此,问题搞定。 反思和总结 Centos网络配置文件 RedHat系列的linux所有有关网络的配置文件,都放在了 /etc/sysconfig