// h --------- #import <UIKit/UIKit.h> typedef enum { etNone = 0 , etItem } eElementType; @interface XMLSampleViewController : UITableViewController { NSURLConnection *xmlConnection; eElementType elementType; NSMutableString *xmlValue; NSMutableData *receiveData; NSMutableArray *xmlParseData; NSMutableDictionary *currectItem; } @end // m------------------ #import "XMLSampleViewController.h" @implementation XMLSampleViewController - ( void )didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [ super didReceiveMemoryWarning ]; // Release any cached data, images, etc that aren't in use. } // - ( void )viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } //???: 안전해제 - ( void )dealloc { [ xmlParseData release ]; [ xmlValue release ]; [ currectItem release ]; ...