Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bindx/DXConnection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

DXConnection

####使用CocoaPods

pod 'DXConnection',:git=>"https://github.com/bindx/DXConnection.git"

###使用方法

##---GET请求

#####-Block方式 [DXRequest getDataWithUrlStr:@"http://getxxxx.com" WithCompleteBlcok:^(NSDictionary *dic, NSError *error) {

}];

#####-Delegate方式

[DXRequest getDataWithUrlStr:@"http://getxxxx.com" WithCompleteDelegate:self];

##---POST请求

#####-Block方式

[DXRequest PostStrWithUrlStr:@"http://postxxxx.com" Paramters:@"xxxx" WithCompleteBlcok:^(NSDictionary *dic, NSError *error) {
 
}];
 
[DXRequest PostDataWithUrlStr:@"http://postdata.com" Paramters:xxxx WithCompleteBlcok:^(NSDictionary *dic, NSError *error) {
 
 }];

#####-Delegate方式

[DXRequest PostDataWithUrlStr:@"http://postDataxxx.com" Paramters:xxxx WithCompleteDelegate:self];

...

####-Delegate实现代理 <DXConnectionDeletage

- (void)downloadDidFinish:(NSDictionary *)response;

And more?

=============

关注GitHub https://github.com/bindx/OWSDemo.git

Follow @Bindx on GitHub for the latest update.

About

iOS 多线程网络请求

Resources

License

Stars

Watchers

Forks

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /