Interface (iOS)
Interface (iOS)
설명
제약사항
환경 설정
관련 함수
initWithURL:delegate:
initWithURL:@"http://www.egovframe.go.kr" delegate:self];
파라미터
파라미터
| 유형 | 설명 |
| uri | 통신할 곳의 HTTP URI를 NSSString으로 받는다. |
| delegate | 통신 결과 이벤트를 받을 UIViewController |
setURL:
[m_eGovComModule setURL:@"http://www.egovframe.go.kr"];
파라미터
setTimeOutSeconds:
time out 초를 설정한다.
Default로 10초로 설정되어 있다.
[m_eGovComModule setTimeOutSeconds:10];
파라미터
파라미터
| 유형 | 설명 |
| Seconds | 초 단위 값 NSInteger 를 받는다. |
addPost:key:
[m_eGovComModule addPost:@"값" key:@"키"];
파라미터
파라미터
| 유형 | 설명 |
| Post | 입력하고자 하는 NSString의 값. |
| key | request 파라미터 NSString 값. |
startAsynchronous
[m_eGovComModule startAsynchronouse];
isWifi
[m_eGovComModule isWifi] == YES
isNetworkConnected
[m_eGovComModule isNetworkConnected] == YES
onNetworkStarted
(void)onNetworkStarted { }
onNetworkFailed
(void)onNetworkFailed:(NSError*)error { }
파라미터
파라미터
| 유형 | 설명 |
| error | 발생된 error 내용 |
onNetworkFinished:responseString:responseStatusCode:
(void)onNetworkFinished:(NSData*)responseData responseString:(NSString*)responseString responseStatusCode:(NSInteger)responseStatusCode { }
파라미터
파라미터
| 유형 | 설명 |
| responseData | 결과값 NSData 형식 |
| responseString | 결과값 NSString 형식 |
| responseStatusCode | 결과 상태 값 NSInteger 형식 |
참고자료