From fceb2096a9549b5d7bec26b17a0576c067129153 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Tue, 15 Apr 2014 09:52:42 -0700 Subject: [PATCH] Ported FindTaskSample to Storyboard --- .../Classes/FindTaskSampleViewController.h | 13 +- .../Classes/FindTaskSampleViewController.m | 28 +- .../Classes/FindTaskSampoleAppDelegate.h | 8 +- .../Classes/FindTaskSampoleAppDelegate.m | 15 +- .../Classes/ResultsViewController.h | 6 +- .../Classes/ResultsViewController.m | 7 +- .../Classes/ResultsViewController.xib | 287 ----------------- FindTaskSample/FindTaskSample-Info.plist | 68 ++-- .../FindTaskSample.xcodeproj/project.pbxproj | 40 +-- .../FindTaskSampleViewController.xib | 241 -------------- FindTaskSample/MainWindow.xib | 188 ----------- .../Resources-iPad/MainWindow-iPad.xib | 302 ------------------ FindTaskSample/Storyboard.storyboard | 135 ++++++++ FindTaskSample/main.m | 3 +- 14 files changed, 212 insertions(+), 1129 deletions(-) delete mode 100755 FindTaskSample/Classes/ResultsViewController.xib delete mode 100755 FindTaskSample/FindTaskSampleViewController.xib delete mode 100755 FindTaskSample/MainWindow.xib delete mode 100755 FindTaskSample/Resources-iPad/MainWindow-iPad.xib create mode 100644 FindTaskSample/Storyboard.storyboard diff --git a/FindTaskSample/Classes/FindTaskSampleViewController.h b/FindTaskSample/Classes/FindTaskSampleViewController.h index 8485768f7..4ffb3c4c4 100755 --- a/FindTaskSample/Classes/FindTaskSampleViewController.h +++ b/FindTaskSample/Classes/FindTaskSampleViewController.h @@ -15,18 +15,7 @@ #import -@interface FindTaskSampleViewController : UIViewController { - - AGSMapView *_mapView; - AGSDynamicMapServiceLayer *_dynamicLayer; - UISearchBar *_searchBar; - AGSGraphicsLayer *_graphicsLayer; - AGSFindTask *_findTask; - AGSFindParameters *_findParams; - AGSCalloutTemplate *_cityCalloutTemplate; - AGSCalloutTemplate *_riverCalloutTemplate; - AGSCalloutTemplate *_stateCalloutTemplate; -} +@interface FindTaskSampleViewController : UIViewController @property (nonatomic, strong) IBOutlet AGSMapView *mapView; @property (nonatomic, strong) IBOutlet UISearchBar *searchBar; diff --git a/FindTaskSample/Classes/FindTaskSampleViewController.m b/FindTaskSample/Classes/FindTaskSampleViewController.m index e098f8349..0066422ee 100755 --- a/FindTaskSample/Classes/FindTaskSampleViewController.m +++ b/FindTaskSample/Classes/FindTaskSampleViewController.m @@ -18,6 +18,13 @@ #define kSearchBarPlaceholder @"Find State/City/River" #define kDynamicMapServiceURL @"http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer" #define kTiledMapServiceURL @"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer" +#define kResultsSegueIdentifier @"ResultsSegue" + +@interface FindTaskSampleViewController () + +@property (nonatomic, strong) AGSGraphic *selectedGraphic; + +@end @implementation FindTaskSampleViewController @@ -82,17 +89,10 @@ - (void)mapViewDidLoad:(AGSMapView *)mapView { #pragma mark AGSCalloutDelegate - (void) didClickAccessoryButtonForCallout:(AGSCallout *) callout { + //save selected graphic to assign it to the results view controller + self.selectedGraphic = (AGSGraphic*) callout.representedObject; - AGSGraphic* graphic = (AGSGraphic*) callout.representedObject; - //The user clicked the callout button, so display the complete set of results - ResultsViewController *resultsVC = [[ResultsViewController alloc] initWithNibName:@"ResultsViewController" bundle:nil]; - - //set our attributes/results into the results VC - resultsVC.results = [graphic allAttributes]; - - //display the results vc modally - [self presentViewController:resultsVC animated:YES completion:nil]; - + [self performSegueWithIdentifier:kResultsSegueIdentifier sender:self]; } #pragma mark - UISearchBarDelegate @@ -262,5 +262,13 @@ - (void)viewDidUnload { // e.g. self.myOutlet = nil; } +#pragma mark - segues + +-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { + if ([segue.identifier isEqualToString:kResultsSegueIdentifier]) { + ResultsViewController *controller = segue.destinationViewController; + controller.results = [self.selectedGraphic allAttributes]; + } +} @end diff --git a/FindTaskSample/Classes/FindTaskSampoleAppDelegate.h b/FindTaskSample/Classes/FindTaskSampoleAppDelegate.h index e05559fe0..68702ed55 100755 --- a/FindTaskSample/Classes/FindTaskSampoleAppDelegate.h +++ b/FindTaskSample/Classes/FindTaskSampoleAppDelegate.h @@ -12,15 +12,9 @@ #import -@class FindTaskSampleViewController; - -@interface FindTaskSampoleAppDelegate : NSObject { - UIWindow *window; - FindTaskSampleViewController *viewController; -} +@interface FindTaskSampoleAppDelegate : NSObject @property (nonatomic, strong) IBOutlet UIWindow *window; -@property (nonatomic, strong) IBOutlet FindTaskSampleViewController *viewController; @end diff --git a/FindTaskSample/Classes/FindTaskSampoleAppDelegate.m b/FindTaskSample/Classes/FindTaskSampoleAppDelegate.m index dc3041fe2..77ff64159 100755 --- a/FindTaskSample/Classes/FindTaskSampoleAppDelegate.m +++ b/FindTaskSample/Classes/FindTaskSampoleAppDelegate.m @@ -12,22 +12,11 @@ #import "FindTaskSampoleAppDelegate.h" -#import "FindTaskSampleViewController.h" @implementation FindTaskSampoleAppDelegate -@synthesize window; -@synthesize viewController; - - -- (void)applicationDidFinishLaunching:(UIApplication *)application { - - // Override point for customization after app launch - [window setRootViewController:viewController]; - [window makeKeyAndVisible]; +-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + return YES; } - - - @end diff --git a/FindTaskSample/Classes/ResultsViewController.h b/FindTaskSample/Classes/ResultsViewController.h index ca0518785..949bcbf8e 100755 --- a/FindTaskSample/Classes/ResultsViewController.h +++ b/FindTaskSample/Classes/ResultsViewController.h @@ -13,11 +13,7 @@ #import -@interface ResultsViewController : UIViewController { - NSDictionary *_results; - UITableView *_tableView; - -} +@interface ResultsViewController : UIViewController //results are the attributes of the result of the geocode operation @property (nonatomic, strong) NSDictionary *results; diff --git a/FindTaskSample/Classes/ResultsViewController.m b/FindTaskSample/Classes/ResultsViewController.m index 400d80964..b267619e7 100755 --- a/FindTaskSample/Classes/ResultsViewController.m +++ b/FindTaskSample/Classes/ResultsViewController.m @@ -15,8 +15,11 @@ @implementation ResultsViewController -@synthesize results = _results; -@synthesize tableView = _tableView; +// in iOS7 this gets called and hides the status bar so the view does not go under the top iPhone status bar +- (BOOL)prefersStatusBarHidden +{ + return YES; +} - (IBAction)done:(id)sender { diff --git a/FindTaskSample/Classes/ResultsViewController.xib b/FindTaskSample/Classes/ResultsViewController.xib deleted file mode 100755 index 2659a1146..000000000 --- a/FindTaskSample/Classes/ResultsViewController.xib +++ /dev/null @@ -1,287 +0,0 @@ - - - - 784 - 10C540 - 740 - 1038.25 - 458.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 62 - - - YES - - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - YES - - YES - - - YES - - - - YES - - IBFilesOwner - - - IBFirstResponder - - - - 292 - - YES - - - 274 - {320, 416} - - - 3 - MQA - - NO - YES - NO - - NO - 1 - 0 - YES - 44 - 22 - 22 - - - - 266 - {{0, 416}, {320, 44}} - - NO - NO - 2 - - YES - - - 5 - - - Done - 1 - - - - - 5 - - - - - {320, 460} - - - 3 - MQA - - 2 - - - NO - - - - - YES - - - dataSource - - - - 6 - - - - delegate - - - - 7 - - - - view - - - - 16 - - - - tableView - - - - 17 - - - - done: - - - - 18 - - - - - YES - - 0 - - - - - - -1 - - - File's Owner - - - -2 - - - - - 8 - - - YES - - - - - - - 4 - - - - - 9 - - - YES - - - - - - - - 10 - - - - - 13 - - - - - 14 - - - - - - - YES - - YES - -1.CustomClassName - -2.CustomClassName - 10.IBPluginDependency - 13.IBPluginDependency - 14.IBPluginDependency - 4.IBEditorWindowLastContentRect - 4.IBPluginDependency - 8.IBEditorWindowLastContentRect - 8.IBPluginDependency - 9.IBPluginDependency - - - YES - ResultsViewController - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - {{438, 504}, {320, 480}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - {{380, 685}, {320, 460}} - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - YES - - - - - YES - - - YES - - - - 18 - - - - YES - - ResultsViewController - UIViewController - - done: - id - - - tableView - UITableView - - - IBProjectSource - Classes/ResultsViewController.h - - - - - 0 - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - ../GeocodingDemo.xcodeproj - 3 - 3.1 - - diff --git a/FindTaskSample/FindTaskSample-Info.plist b/FindTaskSample/FindTaskSample-Info.plist index f979c34af..a98bf3f57 100755 --- a/FindTaskSample/FindTaskSample-Info.plist +++ b/FindTaskSample/FindTaskSample-Info.plist @@ -1,34 +1,34 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleDisplayName - ${PRODUCT_NAME} - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - icon.png - CFBundleIdentifier - com.esri.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - APPL - CFBundleShortVersionString - 10.2 - CFBundleSignature - ???? - CFBundleVersion - 1.0 - LSRequiresIPhoneOS - - NSMainNibFile - MainWindow - NSMainNibFile~ipad - MainWindow-iPad - - + + + + + CFBundleDevelopmentRegion + English + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + icon.png + CFBundleIdentifier + com.esri.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 10.2 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Storyboard + UIMainStoryboardFile~ipad + Storyboard + + diff --git a/FindTaskSample/FindTaskSample.xcodeproj/project.pbxproj b/FindTaskSample/FindTaskSample.xcodeproj/project.pbxproj index 26ccb380a..5f60e4d0f 100755 --- a/FindTaskSample/FindTaskSample.xcodeproj/project.pbxproj +++ b/FindTaskSample/FindTaskSample.xcodeproj/project.pbxproj @@ -10,11 +10,8 @@ 1D3623260D0F684500981E51 /* FindTaskSampoleAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* FindTaskSampoleAppDelegate.m */; }; 1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; }; 2165C87A1210C06300228570 /* ResultsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 2165C8781210C06300228570 /* ResultsViewController.m */; }; - 2165C87B1210C06300228570 /* ResultsViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2165C8791210C06300228570 /* ResultsViewController.xib */; }; - 2899E5220DE3E06400AC0155 /* FindTaskSampleViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* FindTaskSampleViewController.xib */; }; - 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; }; 28D7ACF80DDB3853001CB0EB /* FindTaskSampleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* FindTaskSampleViewController.m */; }; - 973A26251354FBFC00B7072B /* MainWindow-iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 973A26241354FBFC00B7072B /* MainWindow-iPad.xib */; }; + 3E1E5A6118FD89D600633F50 /* Storyboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3E1E5A6018FD89D600633F50 /* Storyboard.storyboard */; }; AF553144125BB29C0070ED0C /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = AF553142125BB29C0070ED0C /* icon.png */; }; AF553145125BB29C0070ED0C /* icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = AF553143125BB29C0070ED0C /* icon@2x.png */; }; C56B3F8E14C63D74003A46EB /* ArcGIS.bundle in Resources */ = {isa = PBXBuildFile; fileRef = C56B3F8D14C63D74003A46EB /* ArcGIS.bundle */; }; @@ -27,15 +24,12 @@ 1D6058910D05DD3D006BFB54 /* FindTaskSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FindTaskSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 2165C8771210C06300228570 /* ResultsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ResultsViewController.h; sourceTree = ""; }; 2165C8781210C06300228570 /* ResultsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ResultsViewController.m; sourceTree = ""; }; - 2165C8791210C06300228570 /* ResultsViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ResultsViewController.xib; sourceTree = ""; }; - 2899E5210DE3E06400AC0155 /* FindTaskSampleViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = FindTaskSampleViewController.xib; sourceTree = ""; }; - 28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = ""; }; 28D7ACF60DDB3853001CB0EB /* FindTaskSampleViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FindTaskSampleViewController.h; sourceTree = ""; }; 28D7ACF70DDB3853001CB0EB /* FindTaskSampleViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FindTaskSampleViewController.m; sourceTree = ""; }; 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 32CA4F630368D1EE00C91783 /* FindTaskSample_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FindTaskSample_Prefix.pch; sourceTree = ""; }; + 3E1E5A6018FD89D600633F50 /* Storyboard.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Storyboard.storyboard; sourceTree = ""; }; 8D1107310486CEB800E47090 /* FindTaskSample-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "FindTaskSample-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; - 973A26241354FBFC00B7072B /* MainWindow-iPad.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "MainWindow-iPad.xib"; path = "Resources-iPad/MainWindow-iPad.xib"; sourceTree = ""; }; AF553142125BB29C0070ED0C /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = ""; }; AF553143125BB29C0070ED0C /* icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon@2x.png"; sourceTree = ""; }; C56B3F8D14C63D74003A46EB /* ArcGIS.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = ArcGIS.bundle; path = $HOME/Library/SDKs/ArcGIS/iOS/ArcGIS.framework/Versions/Current/Resources/ArcGIS.bundle; sourceTree = ""; }; @@ -56,13 +50,9 @@ 080E96DDFE201D6D7F000001 /* Classes */ = { isa = PBXGroup; children = ( - 2165C8771210C06300228570 /* ResultsViewController.h */, - 2165C8781210C06300228570 /* ResultsViewController.m */, - 2165C8791210C06300228570 /* ResultsViewController.xib */, + 3E1E5A6218FD9AFE00633F50 /* Controllers */, 1D3623240D0F684500981E51 /* FindTaskSampoleAppDelegate.h */, 1D3623250D0F684500981E51 /* FindTaskSampoleAppDelegate.m */, - 28D7ACF60DDB3853001CB0EB /* FindTaskSampleViewController.h */, - 28D7ACF70DDB3853001CB0EB /* FindTaskSampleViewController.m */, ); path = Classes; sourceTree = ""; @@ -78,11 +68,10 @@ 29B97314FDCFA39411CA2CEA /* CustomTemplate */ = { isa = PBXGroup; children = ( - C56B3F8D14C63D74003A46EB /* ArcGIS.bundle */, + 3E1E5A6018FD89D600633F50 /* Storyboard.storyboard */, 080E96DDFE201D6D7F000001 /* Classes */, 29B97315FDCFA39411CA2CEA /* Other Sources */, 29B97317FDCFA39411CA2CEA /* Resources */, - 973A26231354FBFC00B7072B /* Resources-iPad */, 29B97323FDCFA39411CA2CEA /* Frameworks */, 19C28FACFE9D520D11CA2CBB /* Products */, ); @@ -104,8 +93,6 @@ E976B6341679F32900FBA4C9 /* Default-568h@2x.png */, AF553142125BB29C0070ED0C /* icon.png */, AF553143125BB29C0070ED0C /* icon@2x.png */, - 2899E5210DE3E06400AC0155 /* FindTaskSampleViewController.xib */, - 28AD733E0D9D9553002E5188 /* MainWindow.xib */, 8D1107310486CEB800E47090 /* FindTaskSample-Info.plist */, ); name = Resources; @@ -114,16 +101,20 @@ 29B97323FDCFA39411CA2CEA /* Frameworks */ = { isa = PBXGroup; children = ( + C56B3F8D14C63D74003A46EB /* ArcGIS.bundle */, ); name = Frameworks; sourceTree = ""; }; - 973A26231354FBFC00B7072B /* Resources-iPad */ = { + 3E1E5A6218FD9AFE00633F50 /* Controllers */ = { isa = PBXGroup; children = ( - 973A26241354FBFC00B7072B /* MainWindow-iPad.xib */, + 2165C8771210C06300228570 /* ResultsViewController.h */, + 2165C8781210C06300228570 /* ResultsViewController.m */, + 28D7ACF60DDB3853001CB0EB /* FindTaskSampleViewController.h */, + 28D7ACF70DDB3853001CB0EB /* FindTaskSampleViewController.m */, ); - name = "Resources-iPad"; + name = Controllers; sourceTree = ""; }; /* End PBXGroup section */ @@ -152,7 +143,7 @@ 29B97313FDCFA39411CA2CEA /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0500; + LastUpgradeCheck = 0510; }; buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "FindTaskSample" */; compatibilityVersion = "Xcode 3.2"; @@ -178,12 +169,9 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */, - 2899E5220DE3E06400AC0155 /* FindTaskSampleViewController.xib in Resources */, - 2165C87B1210C06300228570 /* ResultsViewController.xib in Resources */, + 3E1E5A6118FD89D600633F50 /* Storyboard.storyboard in Resources */, AF553144125BB29C0070ED0C /* icon.png in Resources */, AF553145125BB29C0070ED0C /* icon@2x.png in Resources */, - 973A26251354FBFC00B7072B /* MainWindow-iPad.xib in Resources */, C56B3F8E14C63D74003A46EB /* ArcGIS.bundle in Resources */, E976B6351679F32900FBA4C9 /* Default-568h@2x.png in Resources */, ); @@ -265,7 +253,6 @@ C01FCF4F08A954540054247B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; CLANG_ENABLE_MODULES = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; @@ -294,7 +281,6 @@ C01FCF5008A954540054247B /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; CLANG_ENABLE_MODULES = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; diff --git a/FindTaskSample/FindTaskSampleViewController.xib b/FindTaskSample/FindTaskSampleViewController.xib deleted file mode 100755 index 0c4053478..000000000 --- a/FindTaskSample/FindTaskSampleViewController.xib +++ /dev/null @@ -1,241 +0,0 @@ - - - - 1056 - 12A269 - 2840 - 1187 - 624.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 1926 - - - YES - IBProxyObject - IBUIImageView - IBUISearchBar - IBUIView - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 274 - - YES - - - 290 - {320, 75} - - NO - 3 - YES - IBCocoaTouchFramework - 2 - Colorado - Enter a State/City/River to find - Find State/City/River - YES - - IBCocoaTouchFramework - - - - - 274 - {{0, 75}, {320, 385}} - - - 3 - MQA - - 2 - - - IBCocoaTouchFramework - - - - 268 - {{0, 428}, {56, 32}} - - NO - NO - IBCocoaTouchFramework - - NSImage - ArcGIS.bundle/esri.png - - - - {320, 460} - - 3 - MC43NQA - - - NO - - IBCocoaTouchFramework - - - - - YES - - - view - - - - 7 - - - - mapView - - - - 12 - - - - delegate - - - - 16 - - - - - YES - - 0 - - YES - - - - - - -1 - - - File's Owner - - - -2 - - - - - 6 - - - YES - - - - - - - - 10 - - - YES - - - - - 15 - - - - - 17 - - - - - - - YES - - YES - -1.CustomClassName - -1.IBPluginDependency - -2.CustomClassName - -2.IBPluginDependency - 10.CustomClassName - 10.IBPluginDependency - 15.IBPluginDependency - 17.IBPluginDependency - 6.IBPluginDependency - - - YES - FindTaskSampleViewController - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - AGSMapView - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - - - - YES - - - - - 17 - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - 3 - - ArcGIS.bundle/esri.png - {16, 16} - - 1926 - - diff --git a/FindTaskSample/MainWindow.xib b/FindTaskSample/MainWindow.xib deleted file mode 100755 index e18b3048d..000000000 --- a/FindTaskSample/MainWindow.xib +++ /dev/null @@ -1,188 +0,0 @@ - - - - 1552 - 12E55 - 3084 - 1187.39 - 626.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 2083 - - - YES - IBProxyObject - IBUICustomObject - IBUIViewController - IBUIWindow - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - YES - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - IBCocoaTouchFramework - - - FindTaskSampleViewController - - - 1 - 1 - - IBCocoaTouchFramework - NO - - - - 292 - {320, 480} - - - - 1 - MSAxIDEAA - - NO - NO - - IBCocoaTouchFramework - YES - - - - - YES - - - delegate - - - - 4 - - - - viewController - - - - 11 - - - - window - - - - 14 - - - - - YES - - 0 - - YES - - - - - - -1 - - - File's Owner - - - 3 - - - FindTaskDemo App Delegate - - - -2 - - - - - 10 - - - - - 12 - - - - - - - YES - - YES - -1.CustomClassName - -1.IBPluginDependency - -2.CustomClassName - -2.IBPluginDependency - 10.CustomClassName - 10.IBPluginDependency - 12.IBPluginDependency - 3.CustomClassName - 3.IBPluginDependency - - - YES - UIApplication - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - FindTaskSampleViewController - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - FindTaskSampoleAppDelegate - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - - - - YES - - - - - 14 - - - 0 - IBCocoaTouchFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - 3 - 2083 - - diff --git a/FindTaskSample/Resources-iPad/MainWindow-iPad.xib b/FindTaskSample/Resources-iPad/MainWindow-iPad.xib deleted file mode 100755 index 9d52972fb..000000000 --- a/FindTaskSample/Resources-iPad/MainWindow-iPad.xib +++ /dev/null @@ -1,302 +0,0 @@ - - - - 1536 - 12A269 - 2840 - 1187 - 624.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 1926 - - - YES - IBProxyObject - IBUICustomObject - IBUIViewController - IBUIWindow - - - YES - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - YES - - IBFilesOwner - IBIPadFramework - - - IBFirstResponder - IBIPadFramework - - - IBIPadFramework - - - FindTaskSampleViewController - - 2 - - - 1 - 1 - - IBIPadFramework - NO - - - - 292 - {768, 1004} - - 1 - MSAxIDEAA - - NO - NO - - IBIPadFramework - YES - - - - - YES - - - delegate - - - - 4 - - - - viewController - - - - 11 - - - - window - - - - 14 - - - - - YES - - 0 - - YES - - - - - - -1 - - - File's Owner - - - 3 - - - FindTaskDemo App Delegate - - - -2 - - - - - 10 - - - - - 12 - - - - - - - YES - - YES - -1.CustomClassName - -1.IBPluginDependency - -2.CustomClassName - -2.IBPluginDependency - 10.CustomClassName - 10.IBLastUsedUIStatusBarStylesToTargetRuntimesMap - 10.IBPluginDependency - 12.IBLastUsedUIStatusBarStylesToTargetRuntimesMap - 12.IBPluginDependency - 3.CustomClassName - 3.IBPluginDependency - - - YES - UIApplication - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - FindTaskSampleViewController - - IBCocoaTouchFramework - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - IBCocoaTouchFramework - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - FindTaskSampoleAppDelegate - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - YES - - - - - - YES - - - - - 14 - - - - YES - - AGSMapView - AGSMapViewBase - - IBProjectSource - ./Classes/AGSMapView.h - - - - AGSMapViewBase - UIView - - IBProjectSource - ./Classes/AGSMapViewBase.h - - - - FindTaskSampleViewController - UIViewController - - YES - - YES - mapView - searchBar - - - YES - AGSMapView - UISearchBar - - - - YES - - YES - mapView - searchBar - - - YES - - mapView - AGSMapView - - - searchBar - UISearchBar - - - - - IBProjectSource - ./Classes/FindTaskSampleViewController.h - - - - FindTaskSampoleAppDelegate - NSObject - - YES - - YES - viewController - window - - - YES - FindTaskSampleViewController - UIWindow - - - - YES - - YES - viewController - window - - - YES - - viewController - FindTaskSampleViewController - - - window - UIWindow - - - - - IBProjectSource - ./Classes/FindTaskSampoleAppDelegate.h - - - - - 0 - IBIPadFramework - - com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS - - - - com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3 - - - YES - 3 - 1926 - - diff --git a/FindTaskSample/Storyboard.storyboard b/FindTaskSample/Storyboard.storyboard new file mode 100644 index 000000000..8eefd940e --- /dev/null +++ b/FindTaskSample/Storyboard.storyboard @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/FindTaskSample/main.m b/FindTaskSample/main.m index 08a84fc77..fc5c9fa52 100755 --- a/FindTaskSample/main.m +++ b/FindTaskSample/main.m @@ -12,11 +12,12 @@ #import +#import "FindTaskSampoleAppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { - int retVal = UIApplicationMain(argc, argv, nil, nil); + int retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([FindTaskSampoleAppDelegate class])); return retVal; } }