上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 161 下一页
摘要: 原文作者为Greg Miller,文章地址在:http://unixjunkie.blogspot.com/2006/02/nil-and-nil.html在Objective-C中,有一些我们之前并不熟悉但是经常见到的数据类型,比如id、nil、Nil、SEL等等。在很多文章里,我们都见过这些数据类型的介绍,但是都没有说的太清楚。这篇文章从最底层的定义开始,介绍一下这些类型到底是怎么定义的,这会帮助我们更加深入地了解Objective-C。Objective-C中有一些很有趣的数据类型经常会被错误地理解。他们中的大多数都可以在/usr/include/objc/objc.h或者这个目录中的其 阅读全文
posted @ 2012-07-13 15:48 郑文亮 阅读(239) 评论(0) 推荐(0)
摘要: 以下代码转自CocoaChina会员的博客(FLYBLOG),能实现从iPhone压缩图片并上传至服务器的功能。头文件@interface EPUploader : NSObject { NSURL *serverURL; NSString *filePath; id delegate; SEL doneSelector; SEL errorSelector; BOOL uploadDidSucceed;}- (id)initWithURL: (NSURL *)serverURL filePath: (NSString *)filePath delegate: (id)delegate... 阅读全文
posted @ 2012-07-13 15:41 郑文亮 阅读(997) 评论(0) 推荐(0)
摘要: 今天介绍下VM8下安装Mac OS X 10.71、工具篇 下载Vmware Workstation 8.0正式版http://115.com/file/bhyk1l2u# Vmware8.0 汉化包http://115.com/file/dn38a7eu# (因为我的电脑要经常上网银什么的所以为了安全直起签我没有装汉化包,用的是原版英文版!但我测试过此汉化包) 下载Mac OS X 10.7 安装包http://115.com/file/clj1iu8m# 下载HJMac http://115.com/file/cljyu1rh# (使用说明在后面) 下载Mac OS X 10.7 .2 离 阅读全文
posted @ 2012-07-13 14:30 郑文亮 阅读(570) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/zhwl/archive/2012/07/20/2600553.html 阅读全文
posted @ 2012-07-12 11:05 郑文亮 阅读(329) 评论(0) 推荐(0)
摘要: 异步:NSMutableData* buf = [[NSMutableData alloc] initWithLength:0];NSURLConnection* connection = [[NSURLConnection alloc] initWithRequest:req delegate:self];//收到响应时, 会触发- (void)connection:(NSURLConnection *)aConnection didReceiveResponse:(NSURLResponse *)aResponse;//你可以在里面判断返回结果, 或者处理返回的http头中的信息//每收到 阅读全文
posted @ 2012-07-12 10:46 郑文亮 阅读(553) 评论(1) 推荐(0)
摘要: 实际上,ImageButton是不能添加文字的,所以我选择将ImageView控件和TextView控件封装在一个LinearLayout里面,整个LinearLayout就是一个按钮,然后对它监听单击等动作。首先贴上layout.xml里面的布局设计:?1234567891011121314151617181920<LinearLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:orientation="vertical 阅读全文
posted @ 2012-07-12 10:34 郑文亮 阅读(22253) 评论(5) 推荐(1)
摘要: 在Problems视图中发现提示错误 :Error generating final archive: Debug certificate expired on xxxxxx(日期)解决办法:进入:C:/Documents and Settings/USER(用户账户)/.android ,删除:debug.keystore和ddms.cfg 阅读全文
posted @ 2012-07-11 16:51 郑文亮 阅读(230) 评论(0) 推荐(0)
摘要: <?phpheader("Content-type:text/xml;charset=utf-8");$aaa =<<<html<?xml version='1.0' encoding='utf-8'?> <SubFucParams> <Version>1.0.0.0</Version> <Publisher>d3e59f1d78f344c682bef3517a4b667f</Publisher> <PublisherName>rong 阅读全文
posted @ 2012-07-11 16:04 郑文亮 阅读(7355) 评论(0) 推荐(1)
摘要: <?php$x='<html><body>我很长,如何换行呢?我很长,如何换行呢?我很长,如何换行呢?我很长,如何换行呢?我很长,如何换行呢?</body></html>';$xx=<<<html<html><body>我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,我不长,?</body></html>html;echo$xx;?> 阅读全文
posted @ 2012-07-11 12:02 郑文亮 阅读(2742) 评论(0) 推荐(0)
摘要: <?PHPrequire_once("mssql.class.php");//1.创建类,并连接数据库$db = new mssql("dns=aaa;uid=sa;pwd=sa;dbname=test");//2.连接数据库$conn = $db->config("dns=aaa;uid=sa;pwd=sa;dbname=test");//3.选择数据库$dbname = $db->select_db("test");//4.设置允许调试$db->debug = true;//5.执行一条 阅读全文
posted @ 2012-07-11 09:56 郑文亮 阅读(750) 评论(0) 推荐(0)
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 161 下一页