├── README ├── XMLsampleAPP ├── en.lproj │ ├── InfoPlist.strings │ ├── XMLsampleAPPViewController.xib │ └── MainWindow.xib ├── XMLsampleAPPViewController.h ├── XMLsampleAPP-Prefix.pch ├── main.m ├── mainTableController.h ├── XMLParser.h ├── XMLsampleAPPAppDelegate.h ├── XMLsampleAPPViewController.m ├── XMLsampleAPP-Info.plist ├── XMLParser.m ├── XMLsampleAPPAppDelegate.m ├── mainTableController.m └── mainTableController.xib ├── .gitignore ├── XMLsampleAPP.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── XMLhead.m └── XMLhead.h /README: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /XMLsampleAPP/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | _Store 2 | *.swp 3 | *~.nib 4 | build/ 5 | *.pbxuser 6 | *.perspective 7 | *.perspectivev3 8 | xcuserdata 9 | -------------------------------------------------------------------------------- /XMLsampleAPP.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLsampleAPPViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLsampleAPPViewController.h 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XMLsampleAPPViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLsampleAPP-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header for all source files of the 'XMLsampleAPP' target in the 'XMLsampleAPP' project 3 | // 4 | 5 | #import 6 | 7 | #ifndef __IPHONE_3_0 8 | #warning "This project uses features only available in iPhone SDK 3.0 and later." 9 | #endif 10 | 11 | #ifdef __OBJC__ 12 | #import 13 | #import 14 | #endif 15 | -------------------------------------------------------------------------------- /XMLsampleAPP/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, char *argv[]) 12 | { 13 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 14 | int retVal = UIApplicationMain(argc, argv, nil, nil); 15 | [pool release]; 16 | return retVal; 17 | } 18 | -------------------------------------------------------------------------------- /XMLsampleAPP/mainTableController.h: -------------------------------------------------------------------------------- 1 | // 2 | // mainTableController.h 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "XMLsampleAPPAppDelegate.h" 11 | 12 | @class XMLsampleAPPAppDelegate; 13 | 14 | @interface mainTableController : UITableViewController{ 15 | 16 | XMLsampleAPPAppDelegate *XMLsample; 17 | 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLParser.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLParser.h 3 | // XML 4 | // 5 | // Created by iPhone SDK Articles on 11/23/08. 6 | // Copyright 2008 www.iPhoneSDKArticles.com. 7 | // 8 | 9 | #import 10 | #import "XMLsampleAPPAppDelegate.h" 11 | #import "XMLhead.h" 12 | 13 | @class XMLsampleAPPAppDelegate, hotel; 14 | 15 | @interface XMLParser : NSObject { 16 | 17 | NSMutableString *currentElementValue; 18 | 19 | XMLsampleAPPAppDelegate *appDelegate; 20 | 21 | XMLhead *aHotel; 22 | 23 | // NSMutableArray *hotels; 24 | 25 | } 26 | 27 | @property (nonatomic, assign,readwrite) NSMutableArray *hotels; 28 | 29 | 30 | - (XMLParser *) initXMLParser; 31 | 32 | @end 33 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLsampleAPPAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLsampleAPPAppDelegate.h 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "XMLhead.h" 11 | #import "XMLParser.h" 12 | 13 | 14 | @class XMLsampleAPPViewController; 15 | 16 | @interface XMLsampleAPPAppDelegate : NSObject { 17 | 18 | NSMutableArray *hotels; 19 | 20 | } 21 | 22 | @property (nonatomic, retain) IBOutlet UIWindow *window; 23 | 24 | @property (nonatomic, retain) IBOutlet XMLsampleAPPViewController *viewController; 25 | 26 | @property (nonatomic, retain) NSMutableArray *hotels; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLsampleAPPViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLsampleAPPViewController.m 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLsampleAPPViewController.h" 10 | 11 | @implementation XMLsampleAPPViewController 12 | 13 | - (void)didReceiveMemoryWarning 14 | { 15 | // Releases the view if it doesn't have a superview. 16 | [super didReceiveMemoryWarning]; 17 | 18 | // Release any cached data, images, etc that aren't in use. 19 | } 20 | 21 | #pragma mark - View lifecycle 22 | 23 | /* 24 | // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. 25 | - (void)viewDidLoad 26 | { 27 | [super viewDidLoad]; 28 | } 29 | */ 30 | 31 | - (void)viewDidUnload 32 | { 33 | [super viewDidUnload]; 34 | // Release any retained subviews of the main view. 35 | // e.g. self.myOutlet = nil; 36 | } 37 | 38 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 39 | { 40 | // Return YES for supported orientations 41 | return (interfaceOrientation == UIInterfaceOrientationPortrait); 42 | } 43 | 44 | @end 45 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLsampleAPP-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIconFile 12 | 13 | CFBundleIdentifier 14 | tw.idv.wenshyansu.${PRODUCT_NAME:rfc1034identifier} 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | ${PRODUCT_NAME} 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1.0 27 | LSRequiresIPhoneOS 28 | 29 | NSMainNibFile 30 | MainWindow 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /XMLhead.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLhead.m 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLhead.h" 10 | 11 | @implementation XMLhead 12 | 13 | @synthesize RowNumber; 14 | @synthesize REF_WP; 15 | @synthesize CAT1; 16 | @synthesize CAT2; 17 | @synthesize SERIAL_NO; 18 | @synthesize MEMO_TEL; 19 | @synthesize MEMO_FAX; 20 | @synthesize MEMO_COST; 21 | @synthesize stitle; 22 | @synthesize avBegin; 23 | @synthesize avEnd; 24 | @synthesize idpt; 25 | @synthesize xurl; 26 | @synthesize address; 27 | @synthesize xpostDate; 28 | @synthesize langinfo; 29 | @synthesize POI; 30 | @synthesize longitude; 31 | @synthesize latitude; 32 | @synthesize file; 33 | @synthesize xbody; 34 | 35 | - (id)initWithArray 36 | { 37 | self = [self init]; 38 | 39 | file = [[NSMutableArray alloc]init]; 40 | 41 | return self; 42 | } 43 | 44 | -(void)dealloc{ 45 | [RowNumber release]; 46 | [REF_WP release]; 47 | [CAT1 release]; 48 | [CAT2 release]; 49 | [SERIAL_NO release]; 50 | [MEMO_TEL release]; 51 | [MEMO_FAX release]; 52 | [MEMO_COST release]; 53 | [stitle release]; 54 | [avBegin release]; 55 | [avEnd release]; 56 | [idpt release]; 57 | [xurl release]; 58 | [address release]; 59 | [xpostDate release]; 60 | [langinfo release]; 61 | [POI release]; 62 | [longitude release]; 63 | [latitude release]; 64 | [file release]; 65 | [xbody release]; 66 | 67 | [super dealloc]; 68 | } 69 | @end 70 | -------------------------------------------------------------------------------- /XMLhead.h: -------------------------------------------------------------------------------- 1 | // 2 | // XMLhead.h 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface XMLhead : NSObject{ 12 | 13 | NSNumber *RowNumber; 14 | NSNumber *REF_WP; 15 | NSString *CAT1; 16 | NSString *CAT2; 17 | NSNumber *SERIAL_NO; 18 | NSNumber *MEMO_TEL; 19 | NSNumber *MEMO_FAX; 20 | NSString *MEMO_COST; 21 | NSString *stitle; 22 | NSDate *avBegin; 23 | NSDate *avEnd; 24 | NSString *idpt; 25 | NSString *xurl; 26 | NSString *address; 27 | NSDate *xpostDate; 28 | NSNumber *langinfo; 29 | NSString *POI; 30 | NSString *longitude; 31 | NSString *latitude; 32 | NSMutableArray *file; 33 | NSMutableArray *xbody; 34 | 35 | } 36 | 37 | 38 | @property (nonatomic,retain) NSNumber *RowNumber; 39 | @property (nonatomic,retain) NSNumber *REF_WP; 40 | @property (nonatomic,retain) NSString *CAT1; 41 | @property (nonatomic,retain) NSString *CAT2; 42 | @property (nonatomic,retain) NSNumber *SERIAL_NO; 43 | @property (nonatomic,retain) NSNumber *MEMO_TEL; 44 | @property (nonatomic,retain) NSNumber *MEMO_FAX; 45 | @property (nonatomic,retain) NSString *MEMO_COST; 46 | @property (nonatomic,retain) NSString *stitle; 47 | @property (nonatomic,retain) NSDate *avBegin; 48 | @property (nonatomic,retain) NSDate *avEnd; 49 | @property (nonatomic,retain) NSString *idpt; 50 | @property (nonatomic,retain) NSString *xurl; 51 | @property (nonatomic,retain) NSString *address; 52 | @property (nonatomic,retain) NSDate *xpostDate; 53 | @property (nonatomic,retain) NSNumber *langinfo; 54 | @property (nonatomic,retain) NSString *POI; 55 | @property (nonatomic,retain) NSString *longitude; 56 | @property (nonatomic,retain) NSString *latitude; 57 | @property (nonatomic,retain) NSMutableArray *file; 58 | @property (nonatomic,retain) NSMutableArray *xbody; 59 | 60 | - (id)initWithArray; 61 | @end 62 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLParser.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLParser.m 3 | // XML 4 | // 5 | // Created by iPhone SDK Articles on 11/23/08. 6 | // Copyright 2008 www.iPhoneSDKArticles.com. 7 | // 8 | 9 | #import "XMLParser.h" 10 | 11 | 12 | @implementation XMLParser 13 | 14 | @synthesize hotels; 15 | 16 | - (XMLParser *) initXMLParser { 17 | 18 | [super init]; 19 | 20 | // hotels = [[NSMutableArray alloc] init]; 21 | appDelegate = (XMLsampleAPPAppDelegate *)[[UIApplication sharedApplication] delegate]; 22 | 23 | return self; 24 | } 25 | 26 | - (void)parser:(NSXMLParser *)parser didStartElement:(NSString *)elementName 27 | namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qualifiedName 28 | attributes:(NSDictionary *)attributeDict { 29 | 30 | if([elementName isEqualToString:@"CommonFormat"]) { 31 | //Initialize the array. 32 | appDelegate.hotels = [[NSMutableArray alloc] init]; 33 | } 34 | else if([elementName isEqualToString:@"Section"]) { 35 | 36 | //Initialize the book. 37 | 38 | aHotel = [[XMLhead alloc] initWithArray]; 39 | 40 | //Extract the attribute here. 41 | // aHotel.bookID = [[attributeDict objectForKey:@"id"] integerValue]; 42 | 43 | // NSLog(@"Reading id value :%i", aBook.bookID); 44 | } 45 | 46 | NSLog(@"Processing Element: %@", elementName); 47 | } 48 | 49 | - (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string { 50 | 51 | if(!currentElementValue) 52 | currentElementValue = [[NSMutableString alloc] initWithString:string]; 53 | else 54 | [currentElementValue appendString:string]; 55 | 56 | NSLog(@"Processing Value: %@", currentElementValue); 57 | 58 | } 59 | 60 | - (void)parser:(NSXMLParser *)parser didEndElement:(NSString *)elementName 61 | namespaceURI:(NSString *)namespaceURI qualifiedName:(NSString *)qName { 62 | 63 | if([elementName isEqualToString:@"CommonFormat"]) 64 | return; 65 | 66 | //There is nothing to do if we encounter the Books element here. 67 | //If we encounter the Book element howevere, we want to add the book object to the array 68 | // and release the object. 69 | if([elementName isEqualToString:@"Section"]) { 70 | // [hotels addObject:aHotel]; 71 | [appDelegate.hotels addObject:aHotel]; 72 | 73 | [aHotel release]; 74 | aHotel = nil; 75 | } 76 | else { 77 | if ([elementName isEqualToString:@"img"]) 78 | [aHotel.file addObject:currentElementValue]; 79 | else 80 | [aHotel setValue:currentElementValue forKey:elementName]; 81 | } 82 | [currentElementValue release]; 83 | currentElementValue = nil; 84 | } 85 | 86 | - (void) dealloc { 87 | 88 | // [aHotel release]; 89 | // [currentElementValue release]; 90 | // [hotels release]; 91 | [super dealloc]; 92 | } 93 | 94 | @end 95 | -------------------------------------------------------------------------------- /XMLsampleAPP/XMLsampleAPPAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // XMLsampleAPPAppDelegate.m 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "XMLsampleAPPAppDelegate.h" 10 | 11 | #import "XMLsampleAPPViewController.h" 12 | 13 | #import "XMLhead.h" 14 | 15 | #import "mainTableController.h" 16 | 17 | @implementation XMLsampleAPPAppDelegate 18 | 19 | @synthesize window = _window; 20 | @synthesize viewController = _viewController; 21 | @synthesize hotels; 22 | 23 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 24 | { 25 | // Override point for customization after application launch. 26 | 27 | NSURL *url = [[NSURL alloc] initWithString:@"http://www.taipei.gov.tw/public/ogdi/blob/hotel.xml"]; 28 | NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url]; 29 | 30 | //Initialize the delegate. 31 | XMLParser *parser = [[XMLParser alloc] initXMLParser]; 32 | 33 | //Set delegate 34 | [xmlParser setDelegate:parser]; 35 | 36 | //Start parsing the XML file. 37 | BOOL success = [xmlParser parse]; 38 | 39 | if(success) 40 | NSLog(@"No Errors"); 41 | else 42 | NSLog(@"Error Error Error!!!"); 43 | 44 | mainTableController * mainVC = [[mainTableController alloc]init]; 45 | self.window.rootViewController =mainVC; 46 | 47 | //self.window.rootViewController = self.viewController; 48 | [self.window makeKeyAndVisible]; 49 | return YES; 50 | } 51 | 52 | - (void)applicationWillResignActive:(UIApplication *)application 53 | { 54 | /* 55 | Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 56 | Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 57 | */ 58 | } 59 | 60 | - (void)applicationDidEnterBackground:(UIApplication *)application 61 | { 62 | /* 63 | Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 64 | If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 65 | */ 66 | } 67 | 68 | - (void)applicationWillEnterForeground:(UIApplication *)application 69 | { 70 | /* 71 | Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 72 | */ 73 | } 74 | 75 | - (void)applicationDidBecomeActive:(UIApplication *)application 76 | { 77 | /* 78 | Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 79 | */ 80 | } 81 | 82 | - (void)applicationWillTerminate:(UIApplication *)application 83 | { 84 | /* 85 | Called when the application is about to terminate. 86 | Save data if appropriate. 87 | See also applicationDidEnterBackground:. 88 | */ 89 | } 90 | 91 | - (void)dealloc 92 | { 93 | [_window release]; 94 | [_viewController release]; 95 | [super dealloc]; 96 | } 97 | 98 | @end 99 | -------------------------------------------------------------------------------- /XMLsampleAPP/mainTableController.m: -------------------------------------------------------------------------------- 1 | // 2 | // mainTableController.m 3 | // XMLsampleAPP 4 | // 5 | // Created by on 2011/10/14. 6 | // Copyright 2011年 __MyCompanyName__. All rights reserved. 7 | // 8 | 9 | #import "mainTableController.h" 10 | 11 | @implementation mainTableController 12 | 13 | - (id)initWithStyle:(UITableViewStyle)style 14 | { 15 | self = [super initWithStyle:style]; 16 | if (self) { 17 | // Custom initialization 18 | } 19 | 20 | return self; 21 | } 22 | 23 | - (void)didReceiveMemoryWarning 24 | { 25 | // Releases the view if it doesn't have a superview. 26 | [super didReceiveMemoryWarning]; 27 | 28 | // Release any cached data, images, etc that aren't in use. 29 | } 30 | 31 | #pragma mark - View lifecycle 32 | 33 | - (void)viewDidLoad 34 | { 35 | [super viewDidLoad]; 36 | 37 | XMLsample = [(XMLsampleAPPAppDelegate *)[UIApplication sharedApplication]delegate]; 38 | 39 | // Uncomment the following line to preserve selection between presentations. 40 | // self.clearsSelectionOnViewWillAppear = NO; 41 | 42 | // Uncomment the following line to display an Edit button in the navigation bar for this view controller. 43 | // self.navigationItem.rightBarButtonItem = self.editButtonItem; 44 | } 45 | 46 | - (void)viewDidUnload 47 | { 48 | [super viewDidUnload]; 49 | // Release any retained subviews of the main view. 50 | // e.g. self.myOutlet = nil; 51 | } 52 | 53 | - (void)viewWillAppear:(BOOL)animated 54 | { 55 | [super viewWillAppear:animated]; 56 | } 57 | 58 | - (void)viewDidAppear:(BOOL)animated 59 | { 60 | [super viewDidAppear:animated]; 61 | } 62 | 63 | - (void)viewWillDisappear:(BOOL)animated 64 | { 65 | [super viewWillDisappear:animated]; 66 | } 67 | 68 | - (void)viewDidDisappear:(BOOL)animated 69 | { 70 | [super viewDidDisappear:animated]; 71 | } 72 | 73 | - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 74 | { 75 | // Return YES for supported orientations 76 | return (interfaceOrientation == UIInterfaceOrientationPortrait); 77 | } 78 | 79 | #pragma mark - Table view data source 80 | 81 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 82 | { 83 | #warning Potentially incomplete method implementation. 84 | // Return the number of sections. 85 | return 1; 86 | } 87 | 88 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 89 | { 90 | #warning Incomplete method implementation. 91 | // Return the number of rows in the section. 92 | return [XMLsample.hotels count]; 93 | } 94 | 95 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 96 | { 97 | static NSString *CellIdentifier = @"Cell"; 98 | 99 | UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 100 | if (cell == nil) { 101 | cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 102 | } 103 | 104 | // Configure the cell... 105 | XMLhead *aHotel = [XMLsample.hotels objectAtIndex:indexPath.row]; 106 | 107 | cell.textLabel.text = aHotel.stitle; 108 | cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 109 | return cell; 110 | } 111 | 112 | /* 113 | // Override to support conditional editing of the table view. 114 | - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath 115 | { 116 | // Return NO if you do not want the specified item to be editable. 117 | return YES; 118 | } 119 | */ 120 | 121 | /* 122 | // Override to support editing the table view. 123 | - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath 124 | { 125 | if (editingStyle == UITableViewCellEditingStyleDelete) { 126 | // Delete the row from the data source 127 | [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; 128 | } 129 | else if (editingStyle == UITableViewCellEditingStyleInsert) { 130 | // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view 131 | } 132 | } 133 | */ 134 | 135 | /* 136 | // Override to support rearranging the table view. 137 | - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath 138 | { 139 | } 140 | */ 141 | 142 | /* 143 | // Override to support conditional rearranging of the table view. 144 | - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath 145 | { 146 | // Return NO if you do not want the item to be re-orderable. 147 | return YES; 148 | } 149 | */ 150 | 151 | #pragma mark - Table view delegate 152 | 153 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 154 | { 155 | // Navigation logic may go here. Create and push another view controller. 156 | /* 157 | <#DetailViewController#> *detailViewController = [[<#DetailViewController#> alloc] initWithNibName:@"<#Nib name#>" bundle:nil]; 158 | // ... 159 | // Pass the selected object to the new view controller. 160 | [self.navigationController pushViewController:detailViewController animated:YES]; 161 | [detailViewController release]; 162 | */ 163 | } 164 | 165 | @end 166 | -------------------------------------------------------------------------------- /XMLsampleAPP/en.lproj/XMLsampleAPPViewController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 800 5 | 10C540 6 | 759 7 | 1038.25 8 | 458.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 77 12 | 13 | 14 | YES 15 | 16 | 17 | 18 | YES 19 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 20 | 21 | 22 | YES 23 | 24 | YES 25 | 26 | 27 | YES 28 | 29 | 30 | 31 | YES 32 | 33 | IBFilesOwner 34 | IBCocoaTouchFramework 35 | 36 | 37 | IBFirstResponder 38 | IBCocoaTouchFramework 39 | 40 | 41 | 42 | 274 43 | {320, 460} 44 | 45 | 46 | 3 47 | MC43NQA 48 | 49 | 2 50 | 51 | 52 | NO 53 | 54 | IBCocoaTouchFramework 55 | 56 | 57 | 58 | 59 | YES 60 | 61 | 62 | view 63 | 64 | 65 | 66 | 7 67 | 68 | 69 | 70 | 71 | YES 72 | 73 | 0 74 | 75 | 76 | 77 | 78 | 79 | -1 80 | 81 | 82 | File's Owner 83 | 84 | 85 | -2 86 | 87 | 88 | 89 | 90 | 6 91 | 92 | 93 | 94 | 95 | 96 | 97 | YES 98 | 99 | YES 100 | -1.CustomClassName 101 | -2.CustomClassName 102 | 6.IBEditorWindowLastContentRect 103 | 6.IBPluginDependency 104 | 105 | 106 | YES 107 | XMLsampleAPPViewController 108 | UIResponder 109 | {{239, 654}, {320, 480}} 110 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 111 | 112 | 113 | 114 | YES 115 | 116 | 117 | YES 118 | 119 | 120 | 121 | 122 | YES 123 | 124 | 125 | YES 126 | 127 | 128 | 129 | 7 130 | 131 | 132 | 133 | YES 134 | 135 | XMLsampleAPPViewController 136 | UIViewController 137 | 138 | IBProjectSource 139 | XMLsampleAPPViewController.h 140 | 141 | 142 | 143 | 144 | 0 145 | IBCocoaTouchFramework 146 | 147 | com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 148 | 149 | 150 | YES 151 | XMLsampleAPP.xcodeproj 152 | 3 153 | 77 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /XMLsampleAPP/mainTableController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 784 5 | 10B500 6 | 732 7 | 1038.2 8 | 437.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 62 12 | 13 | 14 | YES 15 | 16 | 17 | 18 | YES 19 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 20 | 21 | 22 | YES 23 | 24 | YES 25 | 26 | 27 | YES 28 | 29 | 30 | 31 | YES 32 | 33 | IBFilesOwner 34 | 35 | 36 | IBFirstResponder 37 | 38 | 39 | 40 | 274 41 | {320, 460} 42 | 43 | 44 | 3 45 | MQA 46 | 47 | NO 48 | YES 49 | NO 50 | 51 | NO 52 | 1 53 | 0 54 | YES 55 | 44 56 | 22 57 | 22 58 | 59 | 60 | 61 | 62 | YES 63 | 64 | 65 | view 66 | 67 | 68 | 69 | 5 70 | 71 | 72 | 73 | dataSource 74 | 75 | 76 | 77 | 6 78 | 79 | 80 | 81 | delegate 82 | 83 | 84 | 85 | 7 86 | 87 | 88 | 89 | 90 | YES 91 | 92 | 0 93 | 94 | 95 | 96 | 97 | 98 | -1 99 | 100 | 101 | File's Owner 102 | 103 | 104 | -2 105 | 106 | 107 | 108 | 109 | 4 110 | 111 | 112 | 113 | 114 | 115 | 116 | YES 117 | 118 | YES 119 | -1.CustomClassName 120 | -2.CustomClassName 121 | 4.IBEditorWindowLastContentRect 122 | 4.IBPluginDependency 123 | 124 | 125 | YES 126 | mainTableController 127 | UIResponder 128 | {{329, 504}, {320, 480}} 129 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 130 | 131 | 132 | 133 | YES 134 | 135 | 136 | YES 137 | 138 | 139 | 140 | 141 | YES 142 | 143 | 144 | YES 145 | 146 | 147 | 148 | 7 149 | 150 | 151 | 152 | YES 153 | 154 | mainTableController 155 | UIViewController 156 | 157 | IBProjectSource 158 | mainTableController.h 159 | 160 | 161 | 162 | 163 | 0 164 | 165 | com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 166 | 167 | 168 | YES 169 | 170 | 3 171 | 3.1 172 | 173 | 174 | -------------------------------------------------------------------------------- /XMLsampleAPP.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | DDCE4BE014480ABD00E72FB5 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDCE4BDF14480ABD00E72FB5 /* UIKit.framework */; }; 11 | DDCE4BE214480ABD00E72FB5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDCE4BE114480ABD00E72FB5 /* Foundation.framework */; }; 12 | DDCE4BE414480ABD00E72FB5 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDCE4BE314480ABD00E72FB5 /* CoreGraphics.framework */; }; 13 | DDCE4BEA14480ABD00E72FB5 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = DDCE4BE814480ABD00E72FB5 /* InfoPlist.strings */; }; 14 | DDCE4BEC14480ABD00E72FB5 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DDCE4BEB14480ABD00E72FB5 /* main.m */; }; 15 | DDCE4BF014480ABD00E72FB5 /* XMLsampleAPPAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DDCE4BEF14480ABD00E72FB5 /* XMLsampleAPPAppDelegate.m */; }; 16 | DDCE4BF314480ABD00E72FB5 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = DDCE4BF114480ABD00E72FB5 /* MainWindow.xib */; }; 17 | DDCE4BF614480ABD00E72FB5 /* XMLsampleAPPViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = DDCE4BF514480ABD00E72FB5 /* XMLsampleAPPViewController.m */; }; 18 | DDCE4BF914480ABD00E72FB5 /* XMLsampleAPPViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DDCE4BF714480ABD00E72FB5 /* XMLsampleAPPViewController.xib */; }; 19 | DDCE4C0114480B0400E72FB5 /* XMLhead.m in Sources */ = {isa = PBXBuildFile; fileRef = DDCE4C0014480B0400E72FB5 /* XMLhead.m */; }; 20 | DDCE4C041448186600E72FB5 /* XMLParser.m in Sources */ = {isa = PBXBuildFile; fileRef = DDCE4C031448186600E72FB5 /* XMLParser.m */; }; 21 | DDCE4C08144824A400E72FB5 /* mainTableController.m in Sources */ = {isa = PBXBuildFile; fileRef = DDCE4C06144824A400E72FB5 /* mainTableController.m */; }; 22 | DDCE4C09144824A400E72FB5 /* mainTableController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DDCE4C07144824A400E72FB5 /* mainTableController.xib */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | DDCE4BDB14480ABD00E72FB5 /* XMLsampleAPP.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XMLsampleAPP.app; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | DDCE4BDF14480ABD00E72FB5 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 28 | DDCE4BE114480ABD00E72FB5 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 29 | DDCE4BE314480ABD00E72FB5 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 30 | DDCE4BE714480ABD00E72FB5 /* XMLsampleAPP-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "XMLsampleAPP-Info.plist"; sourceTree = ""; }; 31 | DDCE4BE914480ABD00E72FB5 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 32 | DDCE4BEB14480ABD00E72FB5 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 33 | DDCE4BED14480ABD00E72FB5 /* XMLsampleAPP-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "XMLsampleAPP-Prefix.pch"; sourceTree = ""; }; 34 | DDCE4BEE14480ABD00E72FB5 /* XMLsampleAPPAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XMLsampleAPPAppDelegate.h; sourceTree = ""; }; 35 | DDCE4BEF14480ABD00E72FB5 /* XMLsampleAPPAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XMLsampleAPPAppDelegate.m; sourceTree = ""; }; 36 | DDCE4BF214480ABD00E72FB5 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainWindow.xib; sourceTree = ""; }; 37 | DDCE4BF414480ABD00E72FB5 /* XMLsampleAPPViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XMLsampleAPPViewController.h; sourceTree = ""; }; 38 | DDCE4BF514480ABD00E72FB5 /* XMLsampleAPPViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XMLsampleAPPViewController.m; sourceTree = ""; }; 39 | DDCE4BF814480ABD00E72FB5 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/XMLsampleAPPViewController.xib; sourceTree = ""; }; 40 | DDCE4BFF14480B0400E72FB5 /* XMLhead.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = XMLhead.h; path = ../XMLhead.h; sourceTree = ""; }; 41 | DDCE4C0014480B0400E72FB5 /* XMLhead.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = XMLhead.m; path = ../XMLhead.m; sourceTree = ""; }; 42 | DDCE4C021448186600E72FB5 /* XMLParser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XMLParser.h; sourceTree = ""; }; 43 | DDCE4C031448186600E72FB5 /* XMLParser.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XMLParser.m; sourceTree = ""; }; 44 | DDCE4C05144824A400E72FB5 /* mainTableController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mainTableController.h; sourceTree = ""; }; 45 | DDCE4C06144824A400E72FB5 /* mainTableController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = mainTableController.m; sourceTree = ""; }; 46 | DDCE4C07144824A400E72FB5 /* mainTableController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = mainTableController.xib; sourceTree = ""; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | DDCE4BD814480ABD00E72FB5 /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | DDCE4BE014480ABD00E72FB5 /* UIKit.framework in Frameworks */, 55 | DDCE4BE214480ABD00E72FB5 /* Foundation.framework in Frameworks */, 56 | DDCE4BE414480ABD00E72FB5 /* CoreGraphics.framework in Frameworks */, 57 | ); 58 | runOnlyForDeploymentPostprocessing = 0; 59 | }; 60 | /* End PBXFrameworksBuildPhase section */ 61 | 62 | /* Begin PBXGroup section */ 63 | DDCE4BD014480ABD00E72FB5 = { 64 | isa = PBXGroup; 65 | children = ( 66 | DDCE4BE514480ABD00E72FB5 /* XMLsampleAPP */, 67 | DDCE4BDE14480ABD00E72FB5 /* Frameworks */, 68 | DDCE4BDC14480ABD00E72FB5 /* Products */, 69 | ); 70 | sourceTree = ""; 71 | }; 72 | DDCE4BDC14480ABD00E72FB5 /* Products */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | DDCE4BDB14480ABD00E72FB5 /* XMLsampleAPP.app */, 76 | ); 77 | name = Products; 78 | sourceTree = ""; 79 | }; 80 | DDCE4BDE14480ABD00E72FB5 /* Frameworks */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | DDCE4BDF14480ABD00E72FB5 /* UIKit.framework */, 84 | DDCE4BE114480ABD00E72FB5 /* Foundation.framework */, 85 | DDCE4BE314480ABD00E72FB5 /* CoreGraphics.framework */, 86 | ); 87 | name = Frameworks; 88 | sourceTree = ""; 89 | }; 90 | DDCE4BE514480ABD00E72FB5 /* XMLsampleAPP */ = { 91 | isa = PBXGroup; 92 | children = ( 93 | DDCE4C021448186600E72FB5 /* XMLParser.h */, 94 | DDCE4C031448186600E72FB5 /* XMLParser.m */, 95 | DDCE4BFF14480B0400E72FB5 /* XMLhead.h */, 96 | DDCE4C0014480B0400E72FB5 /* XMLhead.m */, 97 | DDCE4C05144824A400E72FB5 /* mainTableController.h */, 98 | DDCE4C06144824A400E72FB5 /* mainTableController.m */, 99 | DDCE4C07144824A400E72FB5 /* mainTableController.xib */, 100 | DDCE4BEE14480ABD00E72FB5 /* XMLsampleAPPAppDelegate.h */, 101 | DDCE4BEF14480ABD00E72FB5 /* XMLsampleAPPAppDelegate.m */, 102 | DDCE4BF114480ABD00E72FB5 /* MainWindow.xib */, 103 | DDCE4BF414480ABD00E72FB5 /* XMLsampleAPPViewController.h */, 104 | DDCE4BF514480ABD00E72FB5 /* XMLsampleAPPViewController.m */, 105 | DDCE4BF714480ABD00E72FB5 /* XMLsampleAPPViewController.xib */, 106 | DDCE4BE614480ABD00E72FB5 /* Supporting Files */, 107 | ); 108 | path = XMLsampleAPP; 109 | sourceTree = ""; 110 | }; 111 | DDCE4BE614480ABD00E72FB5 /* Supporting Files */ = { 112 | isa = PBXGroup; 113 | children = ( 114 | DDCE4BE714480ABD00E72FB5 /* XMLsampleAPP-Info.plist */, 115 | DDCE4BE814480ABD00E72FB5 /* InfoPlist.strings */, 116 | DDCE4BEB14480ABD00E72FB5 /* main.m */, 117 | DDCE4BED14480ABD00E72FB5 /* XMLsampleAPP-Prefix.pch */, 118 | ); 119 | name = "Supporting Files"; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | DDCE4BDA14480ABD00E72FB5 /* XMLsampleAPP */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = DDCE4BFC14480ABD00E72FB5 /* Build configuration list for PBXNativeTarget "XMLsampleAPP" */; 128 | buildPhases = ( 129 | DDCE4BD714480ABD00E72FB5 /* Sources */, 130 | DDCE4BD814480ABD00E72FB5 /* Frameworks */, 131 | DDCE4BD914480ABD00E72FB5 /* Resources */, 132 | ); 133 | buildRules = ( 134 | ); 135 | dependencies = ( 136 | ); 137 | name = XMLsampleAPP; 138 | productName = XMLsampleAPP; 139 | productReference = DDCE4BDB14480ABD00E72FB5 /* XMLsampleAPP.app */; 140 | productType = "com.apple.product-type.application"; 141 | }; 142 | /* End PBXNativeTarget section */ 143 | 144 | /* Begin PBXProject section */ 145 | DDCE4BD214480ABD00E72FB5 /* Project object */ = { 146 | isa = PBXProject; 147 | buildConfigurationList = DDCE4BD514480ABD00E72FB5 /* Build configuration list for PBXProject "XMLsampleAPP" */; 148 | compatibilityVersion = "Xcode 3.2"; 149 | developmentRegion = English; 150 | hasScannedForEncodings = 0; 151 | knownRegions = ( 152 | en, 153 | ); 154 | mainGroup = DDCE4BD014480ABD00E72FB5; 155 | productRefGroup = DDCE4BDC14480ABD00E72FB5 /* Products */; 156 | projectDirPath = ""; 157 | projectRoot = ""; 158 | targets = ( 159 | DDCE4BDA14480ABD00E72FB5 /* XMLsampleAPP */, 160 | ); 161 | }; 162 | /* End PBXProject section */ 163 | 164 | /* Begin PBXResourcesBuildPhase section */ 165 | DDCE4BD914480ABD00E72FB5 /* Resources */ = { 166 | isa = PBXResourcesBuildPhase; 167 | buildActionMask = 2147483647; 168 | files = ( 169 | DDCE4BEA14480ABD00E72FB5 /* InfoPlist.strings in Resources */, 170 | DDCE4BF314480ABD00E72FB5 /* MainWindow.xib in Resources */, 171 | DDCE4BF914480ABD00E72FB5 /* XMLsampleAPPViewController.xib in Resources */, 172 | DDCE4C09144824A400E72FB5 /* mainTableController.xib in Resources */, 173 | ); 174 | runOnlyForDeploymentPostprocessing = 0; 175 | }; 176 | /* End PBXResourcesBuildPhase section */ 177 | 178 | /* Begin PBXSourcesBuildPhase section */ 179 | DDCE4BD714480ABD00E72FB5 /* Sources */ = { 180 | isa = PBXSourcesBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | DDCE4BEC14480ABD00E72FB5 /* main.m in Sources */, 184 | DDCE4BF014480ABD00E72FB5 /* XMLsampleAPPAppDelegate.m in Sources */, 185 | DDCE4BF614480ABD00E72FB5 /* XMLsampleAPPViewController.m in Sources */, 186 | DDCE4C0114480B0400E72FB5 /* XMLhead.m in Sources */, 187 | DDCE4C041448186600E72FB5 /* XMLParser.m in Sources */, 188 | DDCE4C08144824A400E72FB5 /* mainTableController.m in Sources */, 189 | ); 190 | runOnlyForDeploymentPostprocessing = 0; 191 | }; 192 | /* End PBXSourcesBuildPhase section */ 193 | 194 | /* Begin PBXVariantGroup section */ 195 | DDCE4BE814480ABD00E72FB5 /* InfoPlist.strings */ = { 196 | isa = PBXVariantGroup; 197 | children = ( 198 | DDCE4BE914480ABD00E72FB5 /* en */, 199 | ); 200 | name = InfoPlist.strings; 201 | sourceTree = ""; 202 | }; 203 | DDCE4BF114480ABD00E72FB5 /* MainWindow.xib */ = { 204 | isa = PBXVariantGroup; 205 | children = ( 206 | DDCE4BF214480ABD00E72FB5 /* en */, 207 | ); 208 | name = MainWindow.xib; 209 | sourceTree = ""; 210 | }; 211 | DDCE4BF714480ABD00E72FB5 /* XMLsampleAPPViewController.xib */ = { 212 | isa = PBXVariantGroup; 213 | children = ( 214 | DDCE4BF814480ABD00E72FB5 /* en */, 215 | ); 216 | name = XMLsampleAPPViewController.xib; 217 | sourceTree = ""; 218 | }; 219 | /* End PBXVariantGroup section */ 220 | 221 | /* Begin XCBuildConfiguration section */ 222 | DDCE4BFA14480ABD00E72FB5 /* Debug */ = { 223 | isa = XCBuildConfiguration; 224 | buildSettings = { 225 | ALWAYS_SEARCH_USER_PATHS = NO; 226 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 227 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 228 | COPY_PHASE_STRIP = NO; 229 | GCC_C_LANGUAGE_STANDARD = gnu99; 230 | GCC_DYNAMIC_NO_PIC = NO; 231 | GCC_OPTIMIZATION_LEVEL = 0; 232 | GCC_PREPROCESSOR_DEFINITIONS = ( 233 | "DEBUG=1", 234 | "$(inherited)", 235 | ); 236 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 237 | GCC_VERSION = com.apple.compilers.llvmgcc42; 238 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; 239 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 240 | GCC_WARN_UNUSED_VARIABLE = YES; 241 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 242 | SDKROOT = iphoneos; 243 | }; 244 | name = Debug; 245 | }; 246 | DDCE4BFB14480ABD00E72FB5 /* Release */ = { 247 | isa = XCBuildConfiguration; 248 | buildSettings = { 249 | ALWAYS_SEARCH_USER_PATHS = NO; 250 | ARCHS = "$(ARCHS_STANDARD_32_BIT)"; 251 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 252 | COPY_PHASE_STRIP = YES; 253 | GCC_C_LANGUAGE_STANDARD = gnu99; 254 | GCC_VERSION = com.apple.compilers.llvmgcc42; 255 | GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; 256 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 257 | GCC_WARN_UNUSED_VARIABLE = YES; 258 | IPHONEOS_DEPLOYMENT_TARGET = 4.3; 259 | OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; 260 | SDKROOT = iphoneos; 261 | VALIDATE_PRODUCT = YES; 262 | }; 263 | name = Release; 264 | }; 265 | DDCE4BFD14480ABD00E72FB5 /* Debug */ = { 266 | isa = XCBuildConfiguration; 267 | buildSettings = { 268 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 269 | GCC_PREFIX_HEADER = "XMLsampleAPP/XMLsampleAPP-Prefix.pch"; 270 | INFOPLIST_FILE = "XMLsampleAPP/XMLsampleAPP-Info.plist"; 271 | PRODUCT_NAME = "$(TARGET_NAME)"; 272 | WRAPPER_EXTENSION = app; 273 | }; 274 | name = Debug; 275 | }; 276 | DDCE4BFE14480ABD00E72FB5 /* Release */ = { 277 | isa = XCBuildConfiguration; 278 | buildSettings = { 279 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 280 | GCC_PREFIX_HEADER = "XMLsampleAPP/XMLsampleAPP-Prefix.pch"; 281 | INFOPLIST_FILE = "XMLsampleAPP/XMLsampleAPP-Info.plist"; 282 | PRODUCT_NAME = "$(TARGET_NAME)"; 283 | WRAPPER_EXTENSION = app; 284 | }; 285 | name = Release; 286 | }; 287 | /* End XCBuildConfiguration section */ 288 | 289 | /* Begin XCConfigurationList section */ 290 | DDCE4BD514480ABD00E72FB5 /* Build configuration list for PBXProject "XMLsampleAPP" */ = { 291 | isa = XCConfigurationList; 292 | buildConfigurations = ( 293 | DDCE4BFA14480ABD00E72FB5 /* Debug */, 294 | DDCE4BFB14480ABD00E72FB5 /* Release */, 295 | ); 296 | defaultConfigurationIsVisible = 0; 297 | defaultConfigurationName = Release; 298 | }; 299 | DDCE4BFC14480ABD00E72FB5 /* Build configuration list for PBXNativeTarget "XMLsampleAPP" */ = { 300 | isa = XCConfigurationList; 301 | buildConfigurations = ( 302 | DDCE4BFD14480ABD00E72FB5 /* Debug */, 303 | DDCE4BFE14480ABD00E72FB5 /* Release */, 304 | ); 305 | defaultConfigurationIsVisible = 0; 306 | }; 307 | /* End XCConfigurationList section */ 308 | }; 309 | rootObject = DDCE4BD214480ABD00E72FB5 /* Project object */; 310 | } 311 | -------------------------------------------------------------------------------- /XMLsampleAPP/en.lproj/MainWindow.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1024 5 | 10D571 6 | 786 7 | 1038.29 8 | 460.00 9 | 10 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 11 | 112 12 | 13 | 14 | YES 15 | 16 | 17 | 18 | YES 19 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 20 | 21 | 22 | YES 23 | 24 | YES 25 | 26 | 27 | YES 28 | 29 | 30 | 31 | YES 32 | 33 | IBFilesOwner 34 | IBCocoaTouchFramework 35 | 36 | 37 | IBFirstResponder 38 | IBCocoaTouchFramework 39 | 40 | 41 | IBCocoaTouchFramework 42 | 43 | 44 | XMLsampleAPPViewController 45 | 46 | 47 | 1 48 | 49 | IBCocoaTouchFramework 50 | NO 51 | 52 | 53 | 54 | 292 55 | {320, 480} 56 | 57 | 1 58 | MSAxIDEAA 59 | 60 | NO 61 | NO 62 | 63 | IBCocoaTouchFramework 64 | YES 65 | 66 | 67 | 68 | 69 | YES 70 | 71 | 72 | delegate 73 | 74 | 75 | 76 | 4 77 | 78 | 79 | 80 | viewController 81 | 82 | 83 | 84 | 11 85 | 86 | 87 | 88 | window 89 | 90 | 91 | 92 | 14 93 | 94 | 95 | 96 | 97 | YES 98 | 99 | 0 100 | 101 | 102 | 103 | 104 | 105 | -1 106 | 107 | 108 | File's Owner 109 | 110 | 111 | 3 112 | 113 | 114 | XMLsampleAPP App Delegate 115 | 116 | 117 | -2 118 | 119 | 120 | 121 | 122 | 10 123 | 124 | 125 | 126 | 127 | 12 128 | 129 | 130 | 131 | 132 | 133 | 134 | YES 135 | 136 | YES 137 | -1.CustomClassName 138 | -2.CustomClassName 139 | 10.CustomClassName 140 | 10.IBEditorWindowLastContentRect 141 | 10.IBPluginDependency 142 | 12.IBEditorWindowLastContentRect 143 | 12.IBPluginDependency 144 | 3.CustomClassName 145 | 3.IBPluginDependency 146 | 147 | 148 | YES 149 | UIApplication 150 | UIResponder 151 | XMLsampleAPPViewController 152 | {{234, 376}, {320, 480}} 153 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 154 | {{525, 346}, {320, 480}} 155 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 156 | XMLsampleAPPAppDelegate 157 | com.apple.InterfaceBuilder.IBCocoaTouchPlugin 158 | 159 | 160 | 161 | YES 162 | 163 | 164 | YES 165 | 166 | 167 | 168 | 169 | YES 170 | 171 | 172 | YES 173 | 174 | 175 | 176 | 15 177 | 178 | 179 | 180 | YES 181 | 182 | UIWindow 183 | UIView 184 | 185 | IBUserSource 186 | 187 | 188 | 189 | 190 | XMLsampleAPPAppDelegate 191 | NSObject 192 | 193 | YES 194 | 195 | YES 196 | viewController 197 | window 198 | 199 | 200 | YES 201 | XMLsampleAPPViewController 202 | UIWindow 203 | 204 | 205 | 206 | YES 207 | 208 | YES 209 | viewController 210 | window 211 | 212 | 213 | YES 214 | 215 | viewController 216 | XMLsampleAPPViewController 217 | 218 | 219 | window 220 | UIWindow 221 | 222 | 223 | 224 | 225 | IBProjectSource 226 | XMLsampleAPPAppDelegate.h 227 | 228 | 229 | 230 | XMLsampleAPPAppDelegate 231 | NSObject 232 | 233 | IBUserSource 234 | 235 | 236 | 237 | 238 | XMLsampleAPPViewController 239 | UIViewController 240 | 241 | IBProjectSource 242 | XMLsampleAPPViewController.h 243 | 244 | 245 | 246 | 247 | YES 248 | 249 | NSObject 250 | 251 | IBFrameworkSource 252 | Foundation.framework/Headers/NSError.h 253 | 254 | 255 | 256 | NSObject 257 | 258 | IBFrameworkSource 259 | Foundation.framework/Headers/NSFileManager.h 260 | 261 | 262 | 263 | NSObject 264 | 265 | IBFrameworkSource 266 | Foundation.framework/Headers/NSKeyValueCoding.h 267 | 268 | 269 | 270 | NSObject 271 | 272 | IBFrameworkSource 273 | Foundation.framework/Headers/NSKeyValueObserving.h 274 | 275 | 276 | 277 | NSObject 278 | 279 | IBFrameworkSource 280 | Foundation.framework/Headers/NSKeyedArchiver.h 281 | 282 | 283 | 284 | NSObject 285 | 286 | IBFrameworkSource 287 | Foundation.framework/Headers/NSObject.h 288 | 289 | 290 | 291 | NSObject 292 | 293 | IBFrameworkSource 294 | Foundation.framework/Headers/NSRunLoop.h 295 | 296 | 297 | 298 | NSObject 299 | 300 | IBFrameworkSource 301 | Foundation.framework/Headers/NSThread.h 302 | 303 | 304 | 305 | NSObject 306 | 307 | IBFrameworkSource 308 | Foundation.framework/Headers/NSURL.h 309 | 310 | 311 | 312 | NSObject 313 | 314 | IBFrameworkSource 315 | Foundation.framework/Headers/NSURLConnection.h 316 | 317 | 318 | 319 | NSObject 320 | 321 | IBFrameworkSource 322 | UIKit.framework/Headers/UIAccessibility.h 323 | 324 | 325 | 326 | NSObject 327 | 328 | IBFrameworkSource 329 | UIKit.framework/Headers/UINibLoading.h 330 | 331 | 332 | 333 | NSObject 334 | 335 | IBFrameworkSource 336 | UIKit.framework/Headers/UIResponder.h 337 | 338 | 339 | 340 | UIApplication 341 | UIResponder 342 | 343 | IBFrameworkSource 344 | UIKit.framework/Headers/UIApplication.h 345 | 346 | 347 | 348 | UIResponder 349 | NSObject 350 | 351 | 352 | 353 | UISearchBar 354 | UIView 355 | 356 | IBFrameworkSource 357 | UIKit.framework/Headers/UISearchBar.h 358 | 359 | 360 | 361 | UISearchDisplayController 362 | NSObject 363 | 364 | IBFrameworkSource 365 | UIKit.framework/Headers/UISearchDisplayController.h 366 | 367 | 368 | 369 | UIView 370 | 371 | IBFrameworkSource 372 | UIKit.framework/Headers/UITextField.h 373 | 374 | 375 | 376 | UIView 377 | UIResponder 378 | 379 | IBFrameworkSource 380 | UIKit.framework/Headers/UIView.h 381 | 382 | 383 | 384 | UIViewController 385 | 386 | IBFrameworkSource 387 | UIKit.framework/Headers/UINavigationController.h 388 | 389 | 390 | 391 | UIViewController 392 | 393 | IBFrameworkSource 394 | UIKit.framework/Headers/UIPopoverController.h 395 | 396 | 397 | 398 | UIViewController 399 | 400 | IBFrameworkSource 401 | UIKit.framework/Headers/UISplitViewController.h 402 | 403 | 404 | 405 | UIViewController 406 | 407 | IBFrameworkSource 408 | UIKit.framework/Headers/UITabBarController.h 409 | 410 | 411 | 412 | UIViewController 413 | UIResponder 414 | 415 | IBFrameworkSource 416 | UIKit.framework/Headers/UIViewController.h 417 | 418 | 419 | 420 | UIWindow 421 | UIView 422 | 423 | IBFrameworkSource 424 | UIKit.framework/Headers/UIWindow.h 425 | 426 | 427 | 428 | 429 | 0 430 | IBCocoaTouchFramework 431 | 432 | com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS 433 | 434 | 435 | 436 | com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 437 | 438 | 439 | YES 440 | XMLsampleAPP.xcodeproj 441 | 3 442 | 112 443 | 444 | 445 | --------------------------------------------------------------------------------