UITextView和框架任务的问题 [英] Problem with UITextView and frame task

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

问题描述

这是我在InterFace构建器上的UITextView坐标:

Hi this is my UITextView coordinate on InterFace builder :

所以如果我想通过帧任务使用这个坐标,我的UITextView将改变屏幕上的位置!我不知道是什么问题!我在界面构建器大小选项卡上插入完全数字。

so if i want use this coordinate via frame task , my UITextView going to change the position on the screen !!! i don't know what's the problem ! i insert the exactly numbers on the interface builder size tab .

 textPad.frame = CGRectMake(511, 219, 751, 260);

有什么问题?

推荐答案

iPhone屏幕分辨率为320x480。
(X:320
Y:480)
点(0; 0)位于左上角。

The iPhone screen resolution is 320x480. (X:320 Y:480) The point (0;0) is on the left up corner.

所以你应该选择

textPad.frame = CGRectMake(20, 219, 751, 260);

这篇关于UITextView和框架任务的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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