Preferred way to keep control centered on resize

What is your preferred way of keeping controls centered on its parent when the parent change width or height?


If by 'centered' you mean "it was already in the middle and you want to keep it there without resizing it", then remove all anchors. If it should be resized, gabr's solution is the one to with :)

Need Your Help

How to dynamically change a property that is being accessed

iphone objective-c ios cocoa-touch cocos2d-iphone

I'm programming a game that has 40 levels and I'm storing all my level data in a .plist. This works great but now that I'm trying to implement multiple levels, I'm looking for a way to call a prope...