摘要:
A little runtime excursion为两个button都添加同一个ibaction方法在viewcontroller.m中实现如下的方法:不论怎么变化,都会有如下的规律The lower button is always center-aligned in the window, h... 阅读全文
摘要:
How Auto Layout works在使用auto layout之前,你可能总是使用initWithFrame或者frame, bounds or center属性。使用约束的好处在于你不需要纠结于使用坐标来使得你的view出现在合适的地方。你现在可以通过向auto layout来描述view... 阅读全文