---
title: "修改View显示位置"
author: "niCe"
date: "2010-12-30T14:28:54Z"
tags: []
categories: ["移动开发"]
slug: "view"
draft: false
lastmod: "2010-12-30T14:28:54Z"
id: 855830
url: "https://nice.iteye.com/blog/855830"
---

```
SettingViewController* settingView = [[SettingViewController alloc] initWithNibName:@"SettingViewController" bundle:nil];

CGRect rect = CGMakeRect(x,y,width,height);
[settingView.view setFrame: rect];
[self.view addSubview:settingView.view];
```