2013年1月29日

ASIHttpRequst异步下载

摘要: ViewController.h 1 #import <UIKit/UIKit.h> 2 #import "ASIHTTPRequest.h" 3 4 @interface ViewController : UIViewController 5 <ASIHTTPRequestDelegate> 6 { 7 UIImageView* imageView; 8 } 9 10 @endViewController.m 1 #import "ViewController.h" 2 3 @implementation ViewControl 阅读全文

posted @ 2013-01-29 15:55 灰色的人 阅读(433) 评论(0) 推荐(0) 编辑

URLConnection下载图片

摘要: ViewController.h 1 #import <UIKit/UIKit.h> 2 3 @interface ViewController : UIViewController 4 <NSURLConnectionDataDelegate> 5 { 6 UIImageView* imageView; 7 NSMutableData* imageData; 8 } 9 10 @endViewController.m 1 #import "ViewController.h" 2 3 @implementation ViewController 4 阅读全文

posted @ 2013-01-29 15:29 灰色的人 阅读(485) 评论(0) 推荐(0) 编辑

从网站获取用户数据写进tableView

摘要: ViewController.h 1 #import <UIKit/UIKit.h> 2 3 @interface ViewController : UIViewController 4 <UITableViewDataSource> 5 { 6 UITableView* _tableView; 7 NSMutableArray* dataArray; 8 } 9 10 @endViewController.m 1 #import "ViewController.h" 2 #import "UserItem.h" 3 #impor 阅读全文

posted @ 2013-01-29 15:09 灰色的人 阅读(1063) 评论(0) 推荐(0) 编辑

SBJson

摘要: 1 //{"code":"login_success","message":"abcdeeeee"} 2 //以{}表示的是字典 3 //“:”key,value分隔符 4 //“,”元素分隔符 5 6 NSString* str = @"{\"code\":\"login_success\",\"message\":\"abcedsdfsdf\"}"; 7 8 NSDictionary* dic = [str JS 阅读全文

posted @ 2013-01-29 14:26 灰色的人 阅读(285) 评论(0) 推荐(0) 编辑

简易UDP传输

摘要: ViewController.h 1 #import <UIKit/UIKit.h> 2 #import "AsyncUdpSocket.h" 3 4 @interface ViewController : UIViewController 5 <AsyncUdpSocketDelegate> 6 { 7 IBOutlet UITextField *ipField; 8 IBOutlet UITextField *sendField; 9 IBOutlet UITextView *contentView;10 11 AsyncUdpSocket *r 阅读全文

posted @ 2013-01-29 11:50 灰色的人 阅读(147) 评论(0) 推荐(0) 编辑

简易TCP传输

摘要: ViewController.h 1 #import <UIKit/UIKit.h> 2 #import "AsyncSocket.h" 3 4 @interface ViewController : UIViewController 5 <AsyncSocketDelegate> 6 { 7 IBOutlet UITextField *ipField; 8 IBOutlet UITextField *sendField; 9 IBOutlet UITextView *contentView;10 11 AsyncSocket *recvSocket 阅读全文

posted @ 2013-01-29 10:31 灰色的人 阅读(201) 评论(0) 推荐(0) 编辑

导航