Files
phonegap-plugins/iOS/MapKit/AsyncImageView.h
2012-04-18 11:29:21 +01:00

28 lines
758 B
Objective-C
Executable File

//
// AsyncImage.h
// SabreHotels
//
// Created by Brett Rudd on 19/03/2010.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AsyncImageView : UIView {
//could instead be a subclass of UIImageView instead of UIView, depending on what other features you want to
// to build into this class?
NSURLConnection* connection; //keep a reference to the connection so we can cancel download in dealloc
NSMutableData* data; //keep reference to the data so we can collect it as it downloads
//but where is the UIImage reference? We keep it in self.subviews - no need to re-code what we have in the parent class
}
- (void)loadImageFromURL:(NSURL*)url;
- (void)loadDefaultImage;
- (UIImage*) image;
@end