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.
当我将模拟器更改为 4 英寸时,屏幕左下角有一个按钮会跳起来。不管iphone分辨率如何,有没有办法让它固定在底部?
如果您使用的是界面生成器,只需选择控件并执行以下操作:
您可以设置有关屏幕尺寸的框架,例如:
MyButton.frame = CGRectMake(10, self.view.frame.size.height -60,100,50);