开发者

Setting delegate property without IB

开发者 https://www.devze.com 2022-12-30 20:21 出处:网络
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 inheri

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消