Is NSXMLParser's parse method asynchronous

前端 未结 4 523
清酒与你
清酒与你 2021-02-14 08:29

Is NSXMLParser\'s parse method asynchronous?

in other words if i have an NSXMLParse object and I call [someParseObject parse] from the main thread, will it

4条回答
  •  后悔当初
    2021-02-14 09:17

    NSXMLParser can parse URL/Data, If we parse URL directly, it will freeze the UI(Main Thread),instead of that you can use Data Parsing by using NSXMLParser.Please go through NSURLConnection API for asynchronous fetching the data.

提交回复
热议问题