UIView's initWithFrame not working?
iphone
Solution
Right, because it's not guaranteed that `initWithFrame:` will be called when unarchiving the xib. Try using `awakeFromNib` or `viewWillLoad` or `viewDidLoad`. Which one you choose will mainly depend on at what stage during the display process you need to insert your code.
Also, check out the answer to this question.
Problem
i set my view controller to the particular view through Interfacebuilder. but initWithFrame is not calling , but drawRect is being called?when i put break point?