摘要: http://www.cnblogs.com/zhwl/archive/2012/07/20/2600553.html 阅读全文
posted @ 2012-07-12 11:05 郑文亮 阅读(326) 评论(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 郑文亮 阅读(548) 评论(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 郑文亮 阅读(22239) 评论(5) 推荐(1) 编辑
点击右上角即可分享
微信分享提示