Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
My application develop in DotNet,when we open our application on IPhone,Images(.jpg format)we set on top are not opened in IPhone.
Posted

I guess if you posted some code, we might be able to help. But, Safari should show your images in a web page, even on iPhone.
 
Share this answer
 
iOS likes .PNG better, but there is no reason it shouldn't work with JPEGs.

You can use this tool to rapidly create some iOS code that displays images to see if it works.

If you create a Canappi file like this and submit here it will return a fully functioning iPhone app that displays your image (this is how it works):


package com.yourcompany ;


layout imageLayout {
     image clickMe (80,50,200,200) {
        'mypicture.jpg' ;
     } 
}

view imageView {
     controls {
         imageLayout ;
     }
}

main anImageApp {
     navigationBar ;
     start imageView;    
     menu { imageView } }
}


You of course need to add your image file as a resource to the Xcode project that is returned.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900