IOS ( Object-C )
[IOS / Object-C] - IOS 상태바 Indicator / 상태바 로딩
Vivara
2014. 12. 9. 11:12
반응형
- (NSURLRequest *)connection:(NSURLConnection *) connection
willSendRequest:(NSURLRequest *)request
redirectResponse:(NSURLResponse *)response {
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES; // 커넥션 시작 시 로딩 켬
}
- (void) connection : (NSURLConnection *) connection didFailWithError:(NSError *) error {
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO; // 커넥션 오류 시 로딩 끔
}
- (void) connectionDidFinishLoading : (NSURLConnection *) connection {
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO; // 커넥션 종료 시 로딩 끔
}
반응형