Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-31-2010, 07:16 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default Rss reader ios 4

Hi! I'm very new to programming and is currently making my first real iphone app. I want to make a rss reader which gets the data from a specific predefined feed and then displays data which has been posted the same day as the reader updates in a tableview. All the tutorials I've found didnt work in debug mode in xcode 3.2.5 ios 4.2 so I have not been able to understand them using NSLog events. so to sum up: Get data from today. display in tableview.
teslakiiing is offline   Reply With Quote
Old 12-31-2010, 07:47 AM   #2 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Ok, Those tutorials do work, you just need to configure your base sdk. Go into the Tutorials Forum - Tutorials Discussion and I have made a really easy to follow tutorial on how to fix it.

Quote:
Originally Posted by teslakiiing View Post
Hi! I'm very new to programming and is currently making my first real iphone app. I want to make a rss reader which gets the data from a specific predefined feed and then displays data which has been posted the same day as the reader updates in a tableview. All the tutorials I've found didnt work in debug mode in xcode 3.2.5 ios 4.2 so I have not been able to understand them using NSLog events. so to sum up: Get data from today. display in tableview.
iSDK is offline   Reply With Quote
Old 12-31-2010, 08:55 AM   #3 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by iSDK View Post
Ok, Those tutorials do work, you just need to configure your base sdk. Go into the Tutorials Forum - Tutorials Discussion and I have made a really easy to follow tutorial on how to fix it.
I have done that and tried running them on 4.0.1 iphone 3gs, 4.2.1 ipad and simulator and on the simulator none of them work and on my ipad none work while being run from xcode with debug but do work if I launch them normally from springboard.
Also I have not been able to get them to only display "todays" posts since i dont know how to.
teslakiiing is offline   Reply With Quote
Old 12-31-2010, 09:05 AM   #4 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

What tutorial have you tried?
Quote:
Originally Posted by teslakiiing View Post
I have done that and tried running them on 4.0.1 iphone 3gs, 4.2.1 ipad and simulator and on the simulator none of them work and on my ipad none work while being run from xcode with debug but do work if I launch them normally from springboard.
Also I have not been able to get them to only display "todays" posts since i dont know how to.
iSDK is offline   Reply With Quote
Old 12-31-2010, 09:31 AM   #5 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by iSDK View Post
What tutorial have you tried?
Iphone Tutorial: Creating a RSS Feed Reader
and
iPhone SDK Tutorial: Build a Simple RSS reader for the iPhone: Apple News, Tips and Reviews
teslakiiing is offline   Reply With Quote
Old 12-31-2010, 10:40 AM   #6 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Did you even attemot my tutorial? It works fine for me.

Try the attached project especially built for 4.2 using my tutorial.

TAB RSS reader.zip


iSDK is offline   Reply With Quote
Old 01-02-2011, 01:56 PM   #7 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by iSDK View Post
Did you even attemot my tutorial? It works fine for me.

Try the attached project especially built for 4.2 using my tutorial.

TAB RSS reader.zip
Yes i tried your tutorial but i didnt work. I mustve done something wrong because your attached file worked for me in simulator but not on ipad or iphone. Debugger just says:
Code:
Running…
Error launching remote program: failed to get the task for process 467.
Error launching remote program: failed to get the task for process 467.
The program being debugged is not being run.
The program being debugged is not being run.
and the app crashes before it even loads.
I very much appreciate your help and I apologize for my newbieness()
teslakiiing is offline   Reply With Quote
Old 01-02-2011, 02:58 PM   #8 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Quit Xcode and reopen it. If that doesn't work, reboot your iPad/iPhone.


Quote:
Originally Posted by teslakiiing View Post
Yes i tried your tutorial but i didnt work. I mustve done something wrong because your attached file worked for me in simulator but not on ipad or iphone. Debugger just says:
Code:
Running…
Error launching remote program: failed to get the task for process 467.
Error launching remote program: failed to get the task for process 467.
The program being debugged is not being run.
The program being debugged is not being run.
and the app crashes before it even loads.
I very much appreciate your help and I apologize for my newbieness()
iSDK is offline   Reply With Quote
Old 01-03-2011, 08:39 AM   #9 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

I figure I debug it in simulator and customize it and then just install on iphone.
But i have encountered a new problem. I changed the feed from the tutorial to the one I want and to make it only display todays items i tried to compare the currentDate before it was added to the array to just one random which I know exists. I did like this:
Code:
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{     
	//NSLog(@"ended element: %@", elementName);
	if ([elementName isEqualToString:@"item"]) {
		// save values to an item, then store that item into the array...
		[item setObject:currentTitle forKey:@"title"];
		[item setObject:currentLink forKey:@"link"];
		[item setObject:currentSummary forKey:@"summary"];
		[item setObject:currentDate forKey:@"pubDate"];
		NSMutableString *date = currentDate;
		NSLog(@"date: %@" , date);
		if ([date isEqualToString:@"Mon, 03 Jan 2011 12:00:00 GMT"]) {
			[stories addObject:[item copy]];
			NSLog(@"adding story: %@", currentTitle);
			NSLog(@"date : %@", currentDate);

		}
		NSLog(@"It didnt work");
	}
	
}
and the date string shows in console as the date I compare to but the if loop still is not true.
teslakiiing is offline   Reply With Quote
Old 01-03-2011, 12:59 PM   #10 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Try putting it in the - (void)parser... foundElement method.

Quote:
Originally Posted by teslakiiing View Post
I figure I debug it in simulator and customize it and then just install on iphone.
But i have encountered a new problem. I changed the feed from the tutorial to the one I want and to make it only display todays items i tried to compare the currentDate before it was added to the array to just one random which I know exists. I did like this:
Code:
- (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName{     
	//NSLog(@"ended element: %@", elementName);
	if ([elementName isEqualToString:@"item"]) {
		// save values to an item, then store that item into the array...
		[item setObject:currentTitle forKey:@"title"];
		[item setObject:currentLink forKey:@"link"];
		[item setObject:currentSummary forKey:@"summary"];
		[item setObject:currentDate forKey:@"pubDate"];
		NSMutableString *date = currentDate;
		NSLog(@"date: %@" , date);
		if ([date isEqualToString:@"Mon, 03 Jan 2011 12:00:00 GMT"]) {
			[stories addObject:[item copy]];
			NSLog(@"adding story: %@", currentTitle);
			NSLog(@"date : %@", currentDate);

		}
		NSLog(@"It didnt work");
	}
	
}
and the date string shows in console as the date I compare to but the if loop still is not true.
iSDK is offline   Reply With Quote
Old 01-04-2011, 09:47 AM   #11 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 18
teslakiiing is on a distinguished road
Default

Quote:
Originally Posted by iSDK View Post
Try putting it in the - (void)parser... foundElement method.
Do you mean the foundCharacters? Because I can't find a foundElement method:S
teslakiiing is offline   Reply With Quote
Old 01-04-2011, 12:50 PM   #12 (permalink)
Indie Developer
 
iSDK's Avatar
 
Join Date: Jul 2010
Posts: 1,346
iSDK is on a distinguished road
Send a message via AIM to iSDK
Default

Yes.
Quote:
Originally Posted by teslakiiing View Post
Do you mean the foundCharacters? Because I can't find a foundElement method:S
iSDK is offline   Reply With Quote
Reply

Bookmarks

Tags
iphone, rss

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 360
8 members and 352 guests
blueorb, fredidf, iAppDeveloper, iGamesDev, MarkC, mottdog, sacha1996, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:30 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0