I have made an application for IPad in objective C. In this I am parsing an xml file and using it to display its contents in the MasterView(Split View App). However, the xml file is updated every now and then. How do I refresh the contents displayed in the Master View ??
I have parsed the xml file using NSXML Parser and currently I have used NSTimer to refresh the contents using “reloadData” commend every two seconds. It is NOT working. Please help. Thanks.
first declare timer in .h file like bellow
and then use it in .m file like bellow syntax
here,if you want to repeats timer with viewWill Appear then above code declare in
viewWillAppear:method..hope,this help you….
🙂