iPad UIPopoverController弹出窗口的位置和坐标
来源:互联网 发布:商汤科技 算法开发 编辑:程序博客网 时间:2024/05/17 04:07
- TodoViewController *contentViewController = [[TodoViewController alloc] init];
- UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:contentViewController];
- navigationController.contentSizeForViewInPopover = CGSizeMake(100, 100); //内容大小
- PopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:navigationController];
- popover.popoverContentSize = CGSizeMake(300, 300); //弹出窗口大小,如果屏幕画不下,会挤小的。这个值默认是320x1100
- CGRect popoverRect = CGRectMake(200, 700, 10, 10);
- [popover presentPopoverFromRect:popoverRect //popoverRect的中心点是用来画箭头的,如果中心点如果出了屏幕,系统会优化到窗口边缘
- inView:self.view //上面的矩形坐标是以这个view为参考的
- permittedArrowDirections:UIPopoverArrowDirectionDown //箭头方向
- animated:YES];
- [contentViewController release];
- [navigationController release];
最佳实践,使用哪个view做参考,就以哪个view的bounds送进去就好了,箭头自动指向这个view的中心
0 0
- iPad UIPopoverController弹出窗口的位置和坐标初探
- iPad UIPopoverController弹出窗口的位置和坐标
- iPad UIPopoverController弹出窗口的位置和坐标
- iPad UIPopoverController弹出窗口的位置和坐标
- iPad UIPopoverController弹出窗口的位置和坐标
- iPad UIPopoverController弹出窗口的位置和坐标——再探
- iPad UIPopoverController弹出窗口的位置和坐标——终结篇
- IOS4 -- UIPopoverController弹出窗口的位置和坐标
- IOS4 -- UIPopoverController弹出窗口的位置和坐标
- iOS4 - UIPopoverController弹出窗口的位置和坐标(转载)-待整理
- iOS 弹出窗 UIPopoverController 的使用和 位置控制
- UIPopoverController 的使用方法 Ipad
- 弹出窗口的显示和位置PopUpManager
- ipad中 UIPopoverController 的使用方法
- ipad 中的 UIPopoverController的使用
- iPad开发,UIPopoverController的使用
- JS弹出窗口窗口的位置和大小
- JS弹出窗口窗口的位置和大小
- redis客户端程序实例
- 组合模式(Composite)
- cloudsim network包例子学习
- 腾讯公司的几道历年面试题精选
- 隐式Intent的应用
- iPad UIPopoverController弹出窗口的位置和坐标
- 互联网时代是如何损害你的大脑的?
- 12个PHP面试中常涉及的问题
- 同步和异步、阻塞和非阻塞
- linux--shell错误:syntax error near unexpected token ‘('
- 在Window下SolrColud 5.0二次开发环境部署。
- ZOJ Problem Set - 2727 List the Books
- OPC工作记录整理——第三篇(开发环境的配置)
- Convert Sorted List to Binary Search Tree