The image in html file does'n show when I use CocoaHTTPServer to share file

107 Views Asked by At

I am working on a Wi-Fi-Share app with CocoaHTTPServer. But the image of html background is not shown. The following screenshots are shown something I did in code.

First I creat a instance of HTTPServe and set the "webPath".

enter image description here

Second I add the html file and image into Xcode .

enter image description here

Third I set the background of website in my html file.

enter image description here

Forth I open the url of serve, everything does well but the image don't show.

enter image description here

0

There are 0 best solutions below