首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

ios开发-UINavigationController饮弹出自定义alert或自定义view

2014-04-18 
ios开发--UINavigationController中弹出自定义alert或自定义view? ? 项目中经常遇到需要在UINavigationCon

ios开发--UINavigationController中弹出自定义alert或自定义view

? ? 项目中经常遇到需要在UINavigationController中弹出一个自定义的view或loading窗口之类的,刚开始想到的做法是self.view addSubview添加上去,但navigation bar上的按钮还是可用的。然后又想加到self.navigationController.modalPresentationStyle = UIModalPresentationCurrentContext; // alertViewController背景透明[self.navigationController presentModalViewController:alertViewController animated:NO];

?

? ? 如果需要去掉调用:

[alertViewController dismissModalViewControllerAnimated:NO]// 如果想加动画,可在此处加自定义动画
?

热点排行