Note that there are some explanatory texts on larger screens.

plurals
  1. POrss read iphone/ipad app
    primarykey
    data
    text
    <p>I have an error while reading XML files for my iPhone app. I have a new feature on my iPhone app that reads my RSS feed. Everything looks good by but I have this issue: </p> <blockquote> <p>Error while loading rss. Please check your Internet connection</p> </blockquote> <p>Here's my code:</p> <pre><code>- (BOOL) readRSS { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [UIApplication sharedApplication].networkActivityIndicatorVisible = YES; [[NSURLCache sharedURLCache] setMemoryCapacity:0]; [[NSURLCache sharedURLCache] setDiskCapacity:0]; BOOL success = NO; NSXMLParser *parser = nil; NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://rss.domain.com/%@.xml", self.currentPage]]; parser = [[NSXMLParser alloc] initWithContentsOfURL:url]; [parser setDelegate:self]; [parser setShouldProcessNamespaces:NO]; [parser setShouldReportNamespacePrefixes:NO]; [parser setShouldResolveExternalEntities:NO]; success = [parser parse]; [parser release]; [pool drain]; return success; } </code></pre> <p>Then I have this code:</p> <pre><code>- (void) cleartbl:(NSInteger)type { [[[self rssParser] rssItems] removeAllObjects]; [_tableView reloadData]; if(type == 1) { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"RSS Feed" message:@"Error while loading rss. Please check your Internet connection." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alert show]; [alert release]; } </code></pre> <p>Then i assign: </p> <pre><code>if([elementName isEqualToString:@"title"]){ self.currentItem.title = self.currentItemValue; } </code></pre> <p>What is my issue, am I missing something?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload