Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个动态文本字段,每天填充不同数量的文本。所以,身高是不一样的。我想在其下方放置第二个文本字段,边距为 50 像素。第二个文本字段将相对于第一个文本字段上下移动。
我该怎么做呢?谢谢您的帮助
textfield2.y = textfield1.y + textfield1.height + 50;
This should do it unless I'm misunderstanding your question.