I want to make a application that when the app open, a alertview pop up with the RSS news with one or most posts. Is there any example or tutorial about it?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For starters you just need to create the UIAlertView and display it. You’ll have to implement a delegate if you want to know when they tap OK. Just fill the NSString with whatever you want to display.
I’m assuming you need to know how to download RSS as well. This is not the best way but it is the easiest to download rss into a string.
After you’re going to need to parse it to find the post you want. There are several parsers available including Apple’s own NSXMLParser built into Mac and iOS. I think explaining that here is beyond the scope of the post so I’d look at Apple’s own documentation to better understand how to use it.
Here is a useful walkthrough as well. http://www.raywenderlich.com/forums/viewtopic.php?f=2&t=3018