views:

28

answers:

1

Is it possible to apply an affine transformation to a view directly in Interface Builder? I know I can attach an outlet and assign it to the transform in code, but I'd like the convenience of visually tweaking the transform in Interface Builder.

A: 

Nope. Sorry.

There are several properties that would be nice to set in IB. Occasionally Apple adds them, and then IB warns you that it's "only supported in iPhone OS 3.0 and above" or similar (I think this is the case for contentEdgeInsets on some class or other).

There's a very small chance that you can edit the XML, guess the right property name, and set it to the right string (probably whatever NSStringFromCGAffineTransform returns), but I think if it was possible, Apple would've included it.

There's a slightly larger chance that you can edit the xib, add a custom property, and use a category to override -[UIView initWithCoder:] and load your custom property. You can also write an InterfaceBuilder plugin for a custom view class which supports setting the transform in IB...

tc.