在iPhone上显示图像. [英] Display of Images On IPhone.

查看:79
本文介绍了在iPhone上显示图像.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是在DotNet中开发的,当我们在iPhone上打开应用程序时,我们在顶部设置的图像(.jpg格式)没有在iPhone中打开.

My application develop in DotNet,when we open our application on IPhone,Images(.jpg format)we set on top are not opened in IPhone.

推荐答案

我想如果您发布了一些代码,我们也许可以提供帮助.但是,即使是在iPhone上,Safari也应该在网页上显示图像.
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.


iOS更好地喜欢.PNG,但没有理由不支持JPEG.

您可以使用此工具快速创建一些显示图像的iOS代码,以查看其是否有效.

如果您创建这样的Canappi文件并在此处提交,它将返回一个功能齐全的iPhone应用程序,该应用程序会显示您的图像( 工作方式):


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 } }
}



当然,您需要将图像文件作为资源添加到返回的Xcode项目中.



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


这篇关于在iPhone上显示图像.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆