viewDidLoad
is a good method to init your objects and it should work.
Also, IB never overrides your settings in the viewDidLoad method. The settings loaded by IB are loaded before the viewDidLoad so you can do your custom initiation there.
Your code is correct and you are probably overriding it elsewhere or setting a transform after that.