开发者

Create a Delegate for iphone (in a separate file)

I have been looking for hours and didn't find anything so I decided to give up and ask for your precious knowledge ;)

开发者_如何学编程

In order to make my code cleaner, I would like to implement the delegate methods of NSXMLParser in another file ... but I couldn't find any tutorials ...

Could someone explain me briefly how to do that ?

Cheers mates,

Gauthier.


Create a Class that implements the methods you want your parser to respond to, then set the delegate of your NSXMLParser instance to an instance of your new Class.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜