ITeye博客

XXXXsdfwe

cenphoenix · 共 72 篇文章

android应用客户端自动升级(转)

import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.ht…

2011-05-23T12:17:43Z · Android · 评论(0)

UIPickerView – spinning multiple components

I found an interesting issues with the iPhone SDK and the UIPickerView The didSelectRow method gets called after a users selects a new value on a picker wheel. The method knows what wheel (component) was spun and the index of the newly selected value. This works great for a picker with a single whe…

2010-08-24T16:24:03Z · iphone · 评论(0)

Android开发者必须深入学习的10个应用开源项目

本文转自 http://fly3q.freehostingx.com/ Android开发又将带来新一轮热潮,很多开发者都投入到这个浪潮中去了,创造了许许多多相当优秀的应用。其中也有许许多多的开发者提供了应用开源项 目,贡献出他们的智慧和创造力。学习开源代码是掌握技术的一个最佳方式。下面推荐几个应用开源项目,这些项目不仅提供了优秀的创意,也可以直接掌握 Android内核的接口使用: 1.Android团队提供的示例项目 如果不是从学习Android SDK中提供的那些样例代码开始,可能没有更好的方法来掌握在Android这个框架上开发。由Android的核心开发团队提供了15个优秀的示例项…

2010-07-29T15:32:17Z · Android · 评论(0)

UITableView效果收集

某些打不开需翻()墙 Customizing the background/border colors of a UITableView (grouped style) http://pessoal.org/blog/2009/02/25/customizing-the-background-border-colors-of-a-uitableview/ UITableViewCell Dynamic Height http://www.cimgf.com/2009/09/23/uitableviewcell-dynamic-height/ How to Make Custom Drawn …

2010-07-10T12:28:15Z · iphone · 评论(0)

Eclipse中修改tomcat内存大小

今天用POI导出Excel文件时,报outofmemory错误,debug下,发现是POI在write输出流的时候,stream过大导致内存不够的,为调整tomcat占用内存大小,可如下操作: Eclipse->Window->Preferences->Server->Runtime Environments->选中Apache Tomcat v5.0->点击Edit按钮->在弹出对话框里点击JRE后面的Installed JREs按钮->在弹出对话框中选中tomcat使用的那个JRE->点击Edit按钮->在弹出对话框中,找到Default VM Arguments,并在输入框中输入:-X…

2010-06-29T14:15:36Z · Java · 评论(0)

日期处理

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateStyle:NSDateFormatterMediumStyle]; [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; //[dateFormatter setDateFormat:@"hh:mm:ss"] [dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss.SSS"]; NSLog(@"Date%@", [d…

2010-03-17T22:58:20Z · iphone · 评论(0)

保存数据的一系列方法

/*======================================================= NSKeyedArchiver ========================================================*/ NSString *str = @"abc"; NSString *astr = @"efg"; NSArray *Array = [NSArray arrayWithObjects:str, astr, nil]; //Save NSString *Path = [NSSearchPathForDirectoriesInDoma…

2010-03-17T22:55:48Z · 评论(0)

uninstall xcode

How to uninstall Xcode and iPhone SDK - [ iPhone/Mac Dev ] 9/11/2009 My laptop is Thinkpad X61, with only 160GB harddisk. Although I use 25GB for Mac OS for developing, it's still not enough, especially when I need to update the iPhone's SDK. Each time when I update the SDK, I need to uninstall the…

2010-02-08T02:35:53Z · iphone · 评论(0)

从一个url中获得文本信息(转)

有时候你可能需要从一个url中获取一个文本文件中的信息。 下面的例子会从我的博客页面下载大量的html信息。 -(void) readFromURL{ NSError *error; NSURL *url = [NSURL URLWithString:@"https://blog.prosight.me/"]; NSString *content = [NSString stringWithContentsOfURL: url encoding:NSUTF8StringEncoding error:&error]; } 主要是应用NSString的类方法: + (id)stringWithC…

2010-01-21T11:37:50Z · iphone · 评论(0)

将图片保存在iPhone的相册中(转)

有时候你的应用需要将应用中的图片保存到用户iPhone或者iTouch的相册中。 可以使用UIKit的这个类方法来完成。 void UIImageWriteToSavedPhotosAlbum ( UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo ); mage 要保存到用户设备中的图片 completionTarget 当保存完成后,回调方法所在的对象 completionSelector 当保存完成后,所调用的回调方法。 形式如下: - (void) image: (UIImage…

2010-01-21T11:28:14Z · iphone · 评论(0)

一些遊戲製作有關的博客(转)

站長在收集站內朋友的博客,然後把它們列出來方便大家看,這的確是個好主意,有時候看看別人在做什麼或想什麼,對於我們都會有很大的啟發作用! 我平時也收集了些國外我覺得挺好的的博客,在這列出來供大家參考一下: Make It Big In Games http://makeitbigingames.com/ - Jeff Tunnell 是資深的遊戲制作人,他是 Dynamix (Incredible Machine, Starsiege, Tribes) 和GarageGames (Torque Game Engine, Torque Game Builder)的創辦人之一。 Game Musi…

2010-01-20T14:57:43Z · iphone · 评论(0)

Beautiful Snowflakes

It is a application that display beautiful snowflakes. Features: ※ More than 40 beautiful snowflakes. ※ The effect of snow.

2010-01-14T18:51:37Z · iphone · 评论(0)

Layer Programming with Quartz Core

《转载》 2009/6/25 我来自恐龙蛋 简称:恐龙蛋 or konglongdan。 请保留我的网名,也是对我劳动的肯定嘛。谢谢,希望这个对你有帮助。 Chapter 5.Layer Programming with Quartz Core Quartz Core 框架就像是Leopard 桌面的Core Animation。Quartz Core提供了基本的类来管理UIView对象里面的层。这也用于创建二维对象的三维变换,会有惊人的动画和效果。 要使用Quartz Core框架,您将需要添加到您的Xcode项目。右键单击您的项目的框架文件夹,然后选择添加框架。导航到QuartzCore…

2010-01-08T14:11:24Z · iphone · 评论(0)

如何移除Three20中private API

Three20 是一个非常有名的iPhone开发库,采用Objective-C语言。它是从Facebook iPhone app衍生而来的,所以很多Facebook app上使用的UI控件,像:TabBar,Launch view,Photo view等,都能从这个开发库中找到,且它使用的是Apache License(对商业友好),因此很多iPhone开发者都很喜欢使用它。 关于 Three20 的介绍及使用,我打算以后再详细说明,今天要说的是最近一件关于App Store开始拒绝那些使用 Three20 来开发的app,Apple的说法是: Three20 中引用了一些非public的A…

2010-01-07T22:04:46Z · iphone · 评论(0)

iphone下Three20库(From Facebook)的设置使用方法

Three20是一个编译的静态类库 ,在Xcode中的项目实用此类库也非常方便,以下是一些基础步骤: 1,从Three20 Git上获取 最新文件 ,在终端命令 输入:git clone git://github.com/joehewitt/three20.git,必须确保此项目文件必须有一个固定的存放路径 ,因为你的项目如果实用此类库,在XCode中需要引用此项目(说明:Git是一种版本控制器,也就类似于源代码 管理的东西了,如果还没安装,请到下面网址下载 : http://git-scm.com/download ,并进行安装) 2,经过一些时间下载数据后打开“Three20.xcode…

2010-01-07T22:03:29Z · iphone · 评论(0)