开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜