0
我想在运行时改变文本视图的坐标。但是这个观点并没有动摇。我已经使用iPhone的相同代码,它在那里工作得很好。无法移动textview iPad
//_actionTakenTextViewIpad is the UITextView.
if(count<=3)
{
_actionTakenTextViewIpad.frame=CGRectMake(60, 385, 589, 103);
}
else if (count<=6)
{
_actionTakenTextViewIpad.frame=CGRectMake(60, 485, 589, 103);
}
else
{
_actionTakenTextViewIpad.frame=CGRectMake(60, 585, 589, 103);
}
它看起来很简单,但我在这里错过了什么? 请帮助。
你确定你在主线程中调用了这个吗? –
我已经保持了一个断点,它的打击..放置在viewWillAppear –
尝试[_actionTakenTextViewIpad setNeedsDisplay]后更新帧 –