Setting delegate property without IB
Does anyone show how to set the delegate properly for this without interface builder?
http://www.gauravv.com/2009/12/29/iphone-development-tip-custom-uinavig开发者_运维知识库ationbar/
Since, it inherits from UINavigationBar
it will contain all of the same @property
's. Thus you can do self.delegate = delegateObject
and it will set the delegate of the nav bar.
If you are defining it in the owner class you would do the following:
navbar.delegate = delegateObject;
精彩评论