Skip to main content

Posts

iOS WebView > Display only main-content from a website including pictures

How do I fetch just the main-content part of a webpage and display it in an UIWEBVIEW? Link to the page When I look at the code of the webpage I see that the 'What is new?' posts appear below: <div id="content-header" class="clearfix"> <a name="main-content" id="main-content"></a> <h1 class="title">Aktuell</h1> </div> <!-- /#content-header --> Is it possible to relate to id="main-content within the UIWEBVIEW to display just this part of the website instead of the whole page? Screenshot shows visually what I like to get. P.S This is my code to display the whole webpage: - (void)viewDidLoad { [super viewDidLoad]; NSString *golfClubURL = @"http://golfplatz-altenstadt.de"; NSURL *loungeURL = [NSURL URLWithString:golfClubURL]; NSURLRequest *myrequest = [NSURLRequest requestWithURL:loun

Error in calling xml parser method

I am using retailligence barcode api and using nsxml parser method to parse the response below is the code but it didn't give call to parsing method. What's wrong there. Please help { NSString *myxmlstr = [NSString stringWithFormat:@"http://apitest.retailigence.com/v1.2/products?apikey=rMMzX5IDYVmTjQ3A7D9sZXukjKiZVmdD&barcode=%@&latitude=37.439097&longitude=-122.175806",brcode]; NSLog(@"my myxmlsstr is %@",myxmlstr); dataselected = NO; NSURL * xmlURL = [NSURL fileURLWithPath:myxmlstr]; myParser = [[NSXMLParser alloc] initWithContentsOfURL:xmlURL]; myParser.delegate = self; BOOL success = [myParser parse]; if(success){ NSLog(@"Properly done "); } else{ NSLog(@"not done"); } } Thanks in advance.

Calendar synch?

I am looking to synchronize a google calendar into my in app calendar but I don't have any idea of how to do this. The idea is that the synchronized calendar could be seen by any user that has this app. Thanks

iOS app: Uploading multiple files in the background

For iOS, I am aware that apps can upload in the background, as according to this thread: Uploading in background thread in iOS When I refer to "background", I mean the user has clicked the home button, using another app, or the phone's screen is off. Follow-up Questions: 1. Is there a timeout limit to the background uploading? This may be an issue if the file being uploaded is huge. 2. Is it possible to upload a list of files in the background, or does it only support the finishing of one upload that was in progress before the user switched to another app? 3. I suppose if the user quits the app completely, the upload will be stopped? Quitting completely as in, user double clicks home button, touches and holds down on the app until it starts shaking, then clicks the "X" to shut it down.

View floating above all ViewControllers

Is it possible on iOS that a view always floats above all other views. I ask this because what I would like to achieve is a view that floats above a ViewController, and then a Modal View Controller slides in, whilst that particular view is still floating over that Modal View Controller (hope you get what I am trying to say).