---
title: "UIPopoverController的presentPopoverViewWithRect:inView"
author: "mlkimg"
date: "2010-12-29T12:41:43Z"
tags: []
categories: ["移动开发"]
slug: "uipopovercontroller-presentpopoverviewwithrect-inview"
draft: false
lastmod: "2010-12-29T12:41:43Z"
id: 854747
url: "https://mlkimg.iteye.com/blog/854747"
---

UIPopoverController中的presentPopoverViewWithRect:inView:方法有点confused，弄了半天才明白那个rect是inView的rect，后面的width和height是inView的size，前面的x,y则是相对于inView的center坐标的偏移。