Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode webview allow download file

Hi everyone


I created a simple web browser with xcode to display a our internal link.


The navigation works perfectly, but I need to enable the download of files (.xml, .txt ect).


How do I integrate it?


My code is:



-------------------------------------------------------------------------------- ----------------------------------------------------------------------


@implementation AppDelegate


@synthesize CDwebView;


- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

NSString *urlAddress = @"http://192.168.0.155/enrg/myplanner.php";

NSURL *url = [NSURL URLWithString:urlAddress];

NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

[[CDwebView mainFrame] loadRequest:requestObj];

}


- (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)application {

returnYES;

}

@end


-------------------------------------------------------------------------------- ----------------------------------------------------------------------





Thanks in advance .... Celex.

Posted on May 22, 2015 12:28 AM

Reply

There are no replies.

Xcode webview allow download file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.