`
cenphoenix
  • 浏览: 160512 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表
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 or ...
I found an interesting issues with the iPhone SDK and the UIPickerViewThe 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 wheel. ...
本文转自 http://fly3q.freehostingx.com/ Android开发又将带来新一轮热潮,很多开发者都投入到这个浪潮中去了,创造了许许多多相当优秀的应用。其中也有许许多多的开发者提供了应用开源项 目,贡献出他们的智慧和创造力。学习开源代码是掌握技术的一个最佳方式。下面推荐几个应用开源项目,这些项目不仅提供了优秀的创意,也可以直接掌握 Android内核的接口使用: 1.Android团队提供的示例项目 如果不是从学习Android SDK中提供的那些样例代码开始,可能没有更好的方法来掌握在Android这个框架上开发。由Android的核心开发团队提供了15个优秀的 ...
某些打不开需翻()墙 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/  
今天用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按钮->在弹出对话框中,找到Defau ...

日期处理

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateStyle:NSDateFormatterMediumStyle]; [dateFormatter setTimeStyle:NSDateFormatterShortStyle]; //[dateFormatter setDateFormat:@"hh:mm:ss"] [dateFormatter setDateFormat:@"yyyy-M ...
  /*======================================================= NSKeyedArchiver ========================================================*/ NSString *str = @"abc"; NSString *astr = @"efg"; NSArray *Array = [NSArray arrayWithObjects:str, astr, nil]; //Save NSString *Path = [N ...

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 unins ...
有时候你可能需要从一个url中获取一个文本文件中的信息。 下面的例子会从我的博客页面下载大量的html信息。 -(void) readFromURL{ NSError *error; NSURL *url = [NSURL URLWithString:@"https://blog.prosight.me/"]; NSString *content = [NSString stringWithContentsOfURL: url encoding:NSUTF8Strin ...
有时候你的应用需要将应用中的图片保存到用户iPhone或者iTouch的相册中。 可以使用UIKit的这个类方法来完成。 void UIImageWriteToSavedPhotosAlbum ( UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo );  mage 要保存到用户设备中的图片 completionTarget 当保存完成后,回调方法所在的对象 completionSelector 当保存完成后,所 ...
站長在收集站內朋友的博客,然後把它們列出來方便大家看,這的確是個好主意,有時候看看別人在做什麼或想什麼,對於我們都會有很大的啟發作用!  我平時也收集了些國外我覺得挺好的的博客,在這列出來供大家參考一下:  Make It Big In Games http://makeitbigingames.com/ - Jeff Tunnell 是資深的遊戲制作人,他是 Dynamix (Incredible Machine, Starsiege, Tribes) 和GarageGames (Torque Game Engine, Torque Game Builder)的創辦人之一。  Game Mus ...

Beautiful Snowflakes

It is a application that display beautiful snowflakes. Features: ※ More than 40 beautiful snowflakes. ※ The effect of snow.  
《转载》 2009/6/25  我来自恐龙蛋    简称:恐龙蛋 or konglongdan。请保留我的网名,也是对我劳动的肯定嘛。谢谢,希望这个对你有帮助。 Chapter 5.Layer Programming with Quartz CoreQuartz Core 框架就像是Leopard 桌面的Core Animation。Quartz ...
Three20 是一个非常有名的iPhone开发库,采用Objective-C语言。它是从Facebook iPhone app衍生而来的,所以很多Facebook app上使用的UI控件,像:TabBar,Launch view,Photo view等,都能从这个开发库中找到,且它使用的是Apache License(对商业友 ...
Three20是一个编译的静态类库 ,在Xcode中的项目实用此类库也非常方便,以下是一些基础步骤: 1,从Three20 Git上获取 最新文件 ,在终端命令 输入:git clone git://github.com/joehewitt/three20.git,必须确保此项目文件必须有一个固定的存放路径 ,因为你的项目如果实用此类库,在XCode中需要引用此项目(说明:Git是一种版本控制器,也就类似于源代码 管理的东西了,如果还没安装,请到下面网址下载 :http://git-scm.com/download ,并进行安装) 2,经过一些时间下载数据后打开“Three ...
Global site tag (gtag.js) - Google Analytics