更改UITextView的位置 [英] Changing the position of a UITextView

查看:53
本文介绍了更改UITextView的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了很多帖子,并进行了几次搜索,但没有找到答案。也许没有一个。我已经在视图中添加了UIText视图,但是我想将其向下移动,以便它出现在页面的大约一半位置。

I have looked at a lot of posts and did several searches but haven't found an answer. Maybe there isn't one. I have added a UIText View to my view but I would like to move it down so it appears about half way down the page.

推荐答案

您可以使用 UITextView UIImageView frame 属性$ c>并设置其位置。

You can use the frame property of either the UITextView or UIImageView and set their position with it.

例如。

myUITextView.frame = CGRectMake(x,y,width,height);

这篇关于更改UITextView的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆