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.
我有 textview 来显示一些内容。我知道CGRectMake(10,50,100,100)。50 是从上边距减少的。我需要从50的底部减少。在哪里更改代码?
CGRectMake(10,50,100,100)
要显示textView距离底部至少 50px 的时间,请执行以下操作:
textView
CGRectMake(0, self.view.frame.size.height - 150, 100, 100)
self.view.frame.size.height会给你的高度self.view。
self.view.frame.size.height
self.view
只需降低高度因子 CGRectMake(10,50,100,50)