FTP和iPhone编程 [英] FTP and iPhone Programming

查看:105
本文介绍了FTP和iPhone编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以向我展示代码,该代码从服务器获取图像并将其放入iPhone上的图像以显示在程序中。特别是,假设我的ftp服务器位于mydomain.com,我的用户名是name,密码是password。



代码看起来像什么名为hello.png的大小为25x25的坐在服务器上并在iPhone应用程序中使用它的图片。



谢谢!

解决方案

这是我为一个phonegap插件编写的一些代码,它将下载一个文件并保存在本地

http://blog.clearlyinnovative.com/post/1097750723/phonegap-plugin -for-downloading-url


Can someone show me code that takes an image from a server and puts it into an image on the iPhone to display in a program. In particular, let's say my ftp server is at mydomain.com and my username is "name" and password is "password"

What would the code look like to take an image called "hello.png" of size 25x25 sitting on the server and using it in my iPhone app.

Thanks!

解决方案

here is some code I wrote for a phonegap plugin that will download a file and save it locally

http://blog.clearlyinnovative.com/post/1097750723/phonegap-plugin-for-downloading-url

这篇关于FTP和iPhone编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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