diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.pbxproj b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5e83195 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.pbxproj @@ -0,0 +1,374 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 833AFCC21D47260D0029BEC6 /* Search.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 833AFCC11D47260D0029BEC6 /* Search.storyboard */; }; + 833AFCC41D4726DB0029BEC6 /* Detail.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 833AFCC31D4726DB0029BEC6 /* Detail.storyboard */; }; + 833AFCC81D4727700029BEC6 /* SearchViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 833AFCC71D4727700029BEC6 /* SearchViewController.m */; }; + 833AFCCB1D4727920029BEC6 /* TableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 833AFCCA1D4727920029BEC6 /* TableViewController.m */; }; + 8393F6CB1D43470E00635FDD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8393F6CA1D43470E00635FDD /* main.m */; }; + 8393F6CE1D43470E00635FDD /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 8393F6CD1D43470E00635FDD /* AppDelegate.m */; }; + 8393F6D41D43470E00635FDD /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8393F6D21D43470E00635FDD /* Main.storyboard */; }; + 8393F6D61D43470E00635FDD /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8393F6D51D43470E00635FDD /* Assets.xcassets */; }; + 8393F6D91D43470E00635FDD /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8393F6D71D43470E00635FDD /* LaunchScreen.storyboard */; }; + 8393F6E51D434E4900635FDD /* Utility.m in Sources */ = {isa = PBXBuildFile; fileRef = 8393F6E41D434E4900635FDD /* Utility.m */; }; + 8393F6E81D43504900635FDD /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8393F6E71D43504900635FDD /* ViewController.m */; }; + 8393F6EB1D43506300635FDD /* CollectionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8393F6EA1D43506300635FDD /* CollectionViewController.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 833AFCC11D47260D0029BEC6 /* Search.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Search.storyboard; sourceTree = ""; }; + 833AFCC31D4726DB0029BEC6 /* Detail.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Detail.storyboard; sourceTree = ""; }; + 833AFCC61D4727700029BEC6 /* SearchViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SearchViewController.h; sourceTree = ""; }; + 833AFCC71D4727700029BEC6 /* SearchViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SearchViewController.m; sourceTree = ""; }; + 833AFCC91D4727920029BEC6 /* TableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewController.h; sourceTree = ""; }; + 833AFCCA1D4727920029BEC6 /* TableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewController.m; sourceTree = ""; }; + 8393F6C61D43470E00635FDD /* BTMiniFlickr_iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BTMiniFlickr_iOS.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 8393F6CA1D43470E00635FDD /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 8393F6CC1D43470E00635FDD /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 8393F6CD1D43470E00635FDD /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 8393F6D31D43470E00635FDD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 8393F6D51D43470E00635FDD /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 8393F6D81D43470E00635FDD /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 8393F6DA1D43470E00635FDD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 8393F6E31D434E4900635FDD /* Utility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Utility.h; sourceTree = ""; }; + 8393F6E41D434E4900635FDD /* Utility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Utility.m; sourceTree = ""; }; + 8393F6E61D43504900635FDD /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + 8393F6E71D43504900635FDD /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + 8393F6E91D43506300635FDD /* CollectionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionViewController.h; sourceTree = ""; }; + 8393F6EA1D43506300635FDD /* CollectionViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CollectionViewController.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8393F6C31D43470E00635FDD /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 833AFCC51D4727390029BEC6 /* Search */ = { + isa = PBXGroup; + children = ( + 833AFCC61D4727700029BEC6 /* SearchViewController.h */, + 833AFCC71D4727700029BEC6 /* SearchViewController.m */, + ); + path = Search; + sourceTree = ""; + }; + 8393F6BD1D43470E00635FDD = { + isa = PBXGroup; + children = ( + 8393F6C81D43470E00635FDD /* BTMiniFlickr_iOS */, + 8393F6C71D43470E00635FDD /* Products */, + ); + sourceTree = ""; + }; + 8393F6C71D43470E00635FDD /* Products */ = { + isa = PBXGroup; + children = ( + 8393F6C61D43470E00635FDD /* BTMiniFlickr_iOS.app */, + ); + name = Products; + sourceTree = ""; + }; + 8393F6C81D43470E00635FDD /* BTMiniFlickr_iOS */ = { + isa = PBXGroup; + children = ( + 8393F6E01D434E0A00635FDD /* Utility */, + 8393F6E11D434E0A00635FDD /* Base */, + 8393F6E21D434E0A00635FDD /* Models */, + 833AFCC51D4727390029BEC6 /* Search */, + 8393F6CC1D43470E00635FDD /* AppDelegate.h */, + 8393F6CD1D43470E00635FDD /* AppDelegate.m */, + 833AFCC11D47260D0029BEC6 /* Search.storyboard */, + 833AFCC31D4726DB0029BEC6 /* Detail.storyboard */, + 8393F6D21D43470E00635FDD /* Main.storyboard */, + 8393F6D51D43470E00635FDD /* Assets.xcassets */, + 8393F6D71D43470E00635FDD /* LaunchScreen.storyboard */, + 8393F6DA1D43470E00635FDD /* Info.plist */, + 8393F6C91D43470E00635FDD /* Supporting Files */, + ); + path = BTMiniFlickr_iOS; + sourceTree = ""; + }; + 8393F6C91D43470E00635FDD /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 8393F6CA1D43470E00635FDD /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 8393F6E01D434E0A00635FDD /* Utility */ = { + isa = PBXGroup; + children = ( + 8393F6E31D434E4900635FDD /* Utility.h */, + 8393F6E41D434E4900635FDD /* Utility.m */, + ); + path = Utility; + sourceTree = ""; + }; + 8393F6E11D434E0A00635FDD /* Base */ = { + isa = PBXGroup; + children = ( + 8393F6E61D43504900635FDD /* ViewController.h */, + 8393F6E71D43504900635FDD /* ViewController.m */, + 833AFCC91D4727920029BEC6 /* TableViewController.h */, + 833AFCCA1D4727920029BEC6 /* TableViewController.m */, + 8393F6E91D43506300635FDD /* CollectionViewController.h */, + 8393F6EA1D43506300635FDD /* CollectionViewController.m */, + ); + path = Base; + sourceTree = ""; + }; + 8393F6E21D434E0A00635FDD /* Models */ = { + isa = PBXGroup; + children = ( + ); + path = Models; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 8393F6C51D43470E00635FDD /* BTMiniFlickr_iOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 8393F6DD1D43470E00635FDD /* Build configuration list for PBXNativeTarget "BTMiniFlickr_iOS" */; + buildPhases = ( + 8393F6C21D43470E00635FDD /* Sources */, + 8393F6C31D43470E00635FDD /* Frameworks */, + 8393F6C41D43470E00635FDD /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = BTMiniFlickr_iOS; + productName = BTMiniFlickr_iOS; + productReference = 8393F6C61D43470E00635FDD /* BTMiniFlickr_iOS.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 8393F6BE1D43470E00635FDD /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0730; + ORGANIZATIONNAME = BitTiger; + TargetAttributes = { + 8393F6C51D43470E00635FDD = { + CreatedOnToolsVersion = 7.3.1; + }; + }; + }; + buildConfigurationList = 8393F6C11D43470E00635FDD /* Build configuration list for PBXProject "BTMiniFlickr_iOS" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 8393F6BD1D43470E00635FDD; + productRefGroup = 8393F6C71D43470E00635FDD /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 8393F6C51D43470E00635FDD /* BTMiniFlickr_iOS */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8393F6C41D43470E00635FDD /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8393F6D91D43470E00635FDD /* LaunchScreen.storyboard in Resources */, + 8393F6D61D43470E00635FDD /* Assets.xcassets in Resources */, + 833AFCC21D47260D0029BEC6 /* Search.storyboard in Resources */, + 833AFCC41D4726DB0029BEC6 /* Detail.storyboard in Resources */, + 8393F6D41D43470E00635FDD /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8393F6C21D43470E00635FDD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8393F6E51D434E4900635FDD /* Utility.m in Sources */, + 8393F6EB1D43506300635FDD /* CollectionViewController.m in Sources */, + 8393F6CE1D43470E00635FDD /* AppDelegate.m in Sources */, + 8393F6CB1D43470E00635FDD /* main.m in Sources */, + 833AFCC81D4727700029BEC6 /* SearchViewController.m in Sources */, + 833AFCCB1D4727920029BEC6 /* TableViewController.m in Sources */, + 8393F6E81D43504900635FDD /* ViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 8393F6D21D43470E00635FDD /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8393F6D31D43470E00635FDD /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 8393F6D71D43470E00635FDD /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 8393F6D81D43470E00635FDD /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 8393F6DB1D43470E00635FDD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 8393F6DC1D43470E00635FDD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 9.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 8393F6DE1D43470E00635FDD /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = BTMiniFlickr_iOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.BitTiger.BTMiniFlickr-iOS"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 8393F6DF1D43470E00635FDD /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = BTMiniFlickr_iOS/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "com.BitTiger.BTMiniFlickr-iOS"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 8393F6C11D43470E00635FDD /* Build configuration list for PBXProject "BTMiniFlickr_iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8393F6DB1D43470E00635FDD /* Debug */, + 8393F6DC1D43470E00635FDD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 8393F6DD1D43470E00635FDD /* Build configuration list for PBXNativeTarget "BTMiniFlickr_iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8393F6DE1D43470E00635FDD /* Debug */, + 8393F6DF1D43470E00635FDD /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 8393F6BE1D43470E00635FDD /* Project object */; +} diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..187e113 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.xcworkspace/xcuserdata/ourtrip.xcuserdatad/UserInterfaceState.xcuserstate b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.xcworkspace/xcuserdata/ourtrip.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..d843c5d Binary files /dev/null and b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/project.xcworkspace/xcuserdata/ourtrip.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/xcuserdata/ourtrip.xcuserdatad/xcschemes/BTMiniFlickr_iOS.xcscheme b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/xcuserdata/ourtrip.xcuserdatad/xcschemes/BTMiniFlickr_iOS.xcscheme new file mode 100644 index 0000000..ed29ad7 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/xcuserdata/ourtrip.xcuserdatad/xcschemes/BTMiniFlickr_iOS.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/xcuserdata/ourtrip.xcuserdatad/xcschemes/xcschememanagement.plist b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/xcuserdata/ourtrip.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..945331e --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS.xcodeproj/xcuserdata/ourtrip.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + BTMiniFlickr_iOS.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + 8393F6C51D43470E00635FDD + + primary + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/AppDelegate.h b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/AppDelegate.h new file mode 100644 index 0000000..befe29e --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/AppDelegate.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/AppDelegate.m new file mode 100644 index 0000000..67f5da5 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/AppDelegate.m @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application { + // 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. + // 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. +} + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // 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. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // 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. +} + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // 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. +} + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. +} + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..36d2c80 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,68 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base.lproj/LaunchScreen.storyboard b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..2e721e1 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base.lproj/Main.storyboard b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base.lproj/Main.storyboard new file mode 100644 index 0000000..82cd159 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/CollectionViewController.h b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/CollectionViewController.h new file mode 100644 index 0000000..c70b9eb --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/CollectionViewController.h @@ -0,0 +1,16 @@ +// +// CollectionViewController.h +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import + +@interface CollectionViewController : UICollectionViewController + +- (IBAction)leftHeaderBtnPressed:(id)sender; +- (IBAction)rightHeaderBtnPressed:(id)sender; + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/CollectionViewController.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/CollectionViewController.m new file mode 100644 index 0000000..9ab7607 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/CollectionViewController.m @@ -0,0 +1,44 @@ +// +// CollectionViewController.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "CollectionViewController.h" + +@interface CollectionViewController () + +@property (strong, nonatomic) UIView *emptyView; + +@end + +@implementation CollectionViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + // Register cell classe +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (IBAction)leftHeaderBtnPressed:(id)sender { + NSArray *vcs = self.navigationController.childViewControllers; + if (vcs.count && vcs[0] == self) { + [self dismissViewControllerAnimated:YES completion:nil]; + } else { + [self.navigationController popViewControllerAnimated:YES]; + } +} + +- (IBAction)rightHeaderBtnPressed:(id)sender { + +} + + +@end \ No newline at end of file diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/TableViewController.h b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/TableViewController.h new file mode 100644 index 0000000..967c869 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/TableViewController.h @@ -0,0 +1,13 @@ +// +// TableViewController.h +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/26. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import + +@interface TableViewController : UITableViewController + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/TableViewController.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/TableViewController.m new file mode 100644 index 0000000..6790551 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/TableViewController.m @@ -0,0 +1,36 @@ +// +// TableViewController.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/26. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "TableViewController.h" + +@interface TableViewController () + +@end + +@implementation TableViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + + [self.view setBackgroundColor:[UIColor whiteColor]]; +} + +- (IBAction)leftHeaderBtnPressed:(id)sender { + NSArray *vcs = self.navigationController.childViewControllers; + if (vcs.count && vcs[0] == self) { + [self dismissViewControllerAnimated:YES completion:nil]; + } else { + [self.navigationController popViewControllerAnimated:YES]; + } +} + +- (IBAction)rightHeaderBtnPressed:(id)sender { + +} + +@end \ No newline at end of file diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/ViewController.h b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/ViewController.h new file mode 100644 index 0000000..50d1efd --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/ViewController.h @@ -0,0 +1,20 @@ +// +// ViewController.h +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import +#import "Utility.h" + +@interface ViewController : UIViewController + +- (IBAction)leftHeaderBtnPressed:(id)sender; +- (IBAction)rightHeaderBtnPressed:(id)sender; + +- (void)viewIsEmpty:(BOOL)empty; +@property (nonatomic,assign) CGPoint emptyViewCenter; + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/ViewController.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/ViewController.m new file mode 100644 index 0000000..f1d57da --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Base/ViewController.m @@ -0,0 +1,73 @@ +// +// ViewController.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@property (strong, nonatomic) UIView *emptyView; + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +- (IBAction)leftHeaderBtnPressed:(id)sender { + NSArray *vcs = self.navigationController.childViewControllers; + if (vcs.count && vcs[0] == self) { + [self dismissViewControllerAnimated:YES completion:nil]; + } else { + [self.navigationController popViewControllerAnimated:YES]; + } +} + +- (IBAction)rightHeaderBtnPressed:(id)sender { + +} + +- (void)setEmptyViewCenter:(CGPoint)emptyViewCenter { + _emptyViewCenter = emptyViewCenter; + _emptyView.center = emptyViewCenter; +} +- (void)viewIsEmpty:(BOOL)empty { + if (empty) { + if (!_emptyView) { + self.emptyView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 149, 170)]; + [self.view addSubview:_emptyView]; + if (_emptyViewCenter.x != 0 || _emptyViewCenter.y != 0) { + _emptyView.center = _emptyViewCenter; + } else { + _emptyView.center = CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2-62.5); + } + + UIImageView *iv = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 149, 125)]; + iv.image = [UIImage imageNamed:@"Pic_01"]; + [_emptyView addSubview:iv]; + + UILabel *lb = [[UILabel alloc] initWithFrame:CGRectMake(0, 140, 149, 30)]; + lb.textAlignment = NSTextAlignmentCenter; + lb.textColor = [UIColor darkGrayColor]; + //lb.text = I18NString(@"暂时没有数据", nil); + [_emptyView addSubview:lb]; + } + _emptyView.hidden = NO; + } else { + _emptyView.hidden = YES; + } +} + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Detail.storyboard b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Detail.storyboard new file mode 100644 index 0000000..673e0f7 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Detail.storyboard @@ -0,0 +1,7 @@ + + + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Info.plist b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Info.plist new file mode 100644 index 0000000..bba592a --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Search + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search.storyboard b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search.storyboard new file mode 100644 index 0000000..d90f2ce --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search.storyboard @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search/SearchViewController.h b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search/SearchViewController.h new file mode 100644 index 0000000..cb8cbf9 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search/SearchViewController.h @@ -0,0 +1,13 @@ +// +// SearchViewController.h +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/26. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "TableViewController.h" + +@interface SearchViewController : TableViewController + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search/SearchViewController.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search/SearchViewController.m new file mode 100644 index 0000000..a3b2695 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Search/SearchViewController.m @@ -0,0 +1,28 @@ +// +// SearchViewController.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/26. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "SearchViewController.h" + +@interface SearchViewController () + +@end + +@implementation SearchViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Utility/Utility.h b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Utility/Utility.h new file mode 100644 index 0000000..5f0b02d --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Utility/Utility.h @@ -0,0 +1,36 @@ +// +// Utility.h +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import +#import + +#define IOS_VERSION [[[UIDevice currentDevice] systemVersion] floatValue] +#define CACHE_PATH [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0] +#define DOC_PATH [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0] + +#define SCREEN_HEIGHT [Utility screenBoundsFixedToPortraitOrientation].size.height +#define SCREEN_WIDTH [Utility screenBoundsFixedToPortraitOrientation].size.width + +#define RGB(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1] +#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:a] +#define COLOR_BG_GRAY RGB(242,243,249) + +#if defined(DEBUG) +#define TEST YES +#else +#define TEST NO +#define NSLog(format, ...) +#endif + +#define FStr(format, ...) [NSString stringWithFormat:format, ##__VA_ARGS__] + +@interface Utility : NSObject + ++ (CGRect)screenBoundsFixedToPortraitOrientation; + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Utility/Utility.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Utility/Utility.m new file mode 100644 index 0000000..b45d6a8 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/Utility/Utility.m @@ -0,0 +1,23 @@ +// +// Utility.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import "Utility.h" + +@implementation Utility + ++ (CGRect)screenBoundsFixedToPortraitOrientation { + UIScreen *screen = [UIScreen mainScreen]; +#ifdef __IPHONE_8_0 + if ([screen respondsToSelector:@selector(fixedCoordinateSpace)]) { + return [screen.coordinateSpace convertRect:screen.bounds toCoordinateSpace:screen.fixedCoordinateSpace]; + } +#endif + return screen.bounds; +} + +@end diff --git a/BTMiniFlickr_iOS/BTMiniFlickr_iOS/main.m b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/main.m new file mode 100644 index 0000000..33b0015 --- /dev/null +++ b/BTMiniFlickr_iOS/BTMiniFlickr_iOS/main.m @@ -0,0 +1,16 @@ +// +// main.m +// BTMiniFlickr_iOS +// +// Created by Neo Gao on 16/7/23. +// Copyright © 2016年 BitTiger. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/BTMiniFlickr_iOS/Podfile b/BTMiniFlickr_iOS/Podfile new file mode 100755 index 0000000..b2693a1 --- /dev/null +++ b/BTMiniFlickr_iOS/Podfile @@ -0,0 +1,11 @@ +platform :ios, '7.0' +inhibit_all_warnings! + +target 'BTMiniFlickr_iOS' do +pod 'AFNetworking', '~> 3.0' +pod 'MBProgressHUD', '~> 0.9.1' +pod 'MJExtension', '~> 2.5.12' +pod 'MJRefresh', '~> 2.4.11' +pod 'Masonry', '~> 0.6.3' +pod 'SDWebImage', '~> 3.7' +end