改变view的大小
2015-11-09 17:43
253 查看
/** * 切换城市 */ - (IBAction)changeCity { MTCityViewController *city = [[MTCityViewController alloc] init]; MTNavigationController *nav = [[MTNavigationController alloc] initWithRootViewController:city]; nav.modalPresentationStyle = UIModalPresentationFormSheet; [self presentViewController:nav animated:YES completion:nil]; // modal出来的是MTNavigationController // dismiss掉的应该也是MTNavigationController }
相关文章推荐
- JAVA中mark()和reset()用法
- OC知识梳理-NSArray与NSMutableArray相关知识
- Android自定义控件之仿汽车之家下拉刷新
- linux下vi编辑器常用命令
- iOS开发日记45-ARC和内存管理
- cordova android项目自定义插件及使用(一)
- 手机自动化测试:appium源码分析之bootstrap十
- .NET 4.0 使用 asyn await
- 16进制数的定义以及输入输出
- c# 百度语音合成
- Oracle 阻塞会话的查看与解除
- 搭建ftp服务器
- stopPropagation(), preventDefault() , return false 事件
- 手机自动化测试:appium源码分析之bootstrap九
- hdoj 5240 Exam
- 银行计算利息-20151106
- jsp回车空格时触发事件
- Android应用程序打包时,出现错误:"XXX" is not translated in "af" (Afrikaans), "am" (Amharic), "ar" (Arabic).....
- ConcurrentHashMap原理
- 手机自动化测试:appium源码分析之bootstrap八