- Fix Test Project

This commit is contained in:
Giuseppe Nucifora 2015-07-17 10:49:59 +02:00
parent 6fe5a9839c
commit c2be9705ac
33 changed files with 1913 additions and 1208 deletions

View File

@ -7,6 +7,8 @@ pod 'pop', '~> 1.0'
target 'TabBarPicker_Example', :exclusive => true do
pod "TabBarPicker", :path => "../"
pod 'PureLayout'
pod 'pop', '~> 1.0'
end
target 'TabBarPicker_Tests', :exclusive => true do

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "661DA0CF22A8CD240CD21AE0"
BlueprintIdentifier = "66A365F03E2E5FD04D4DAC69"
BuildableName = "TabBarPicker.bundle"
BlueprintName = "Pods-TabBarPicker_Example-TabBarPicker-TabBarPicker"
ReferencedContainer = "container:Pods.xcodeproj">

View File

@ -14,7 +14,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "59F3F10BFA712900FD40F3A0"
BlueprintIdentifier = "4F73FDE94825965417E35D5A"
BuildableName = "TabBarPicker.framework"
BlueprintName = "Pods-TabBarPicker_Example-TabBarPicker"
ReferencedContainer = "container:Pods.xcodeproj">

View File

@ -14,7 +14,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C568BCF1263500BA486B83CE"
BlueprintIdentifier = "7C0EACB3AF64706AA504E8BE"
BuildableName = "TabBarPicker.bundle"
BlueprintName = "Pods-TabBarPicker_Tests-TabBarPicker-TabBarPicker"
ReferencedContainer = "container:Pods.xcodeproj">

View File

@ -14,7 +14,7 @@
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "DA9B41F6B73A67A0DAEEC17F"
BlueprintIdentifier = "113B2CE1962FE34F95B1D5AD"
BuildableName = "TabBarPicker.framework"
BlueprintName = "Pods-TabBarPicker_Tests-TabBarPicker"
ReferencedContainer = "container:Pods.xcodeproj">

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@ -0,0 +1,9 @@
#include "Pods-TabBarPicker_Example-PureLayout.xcconfig"
CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH
FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/PureLayout" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/PureLayout" "${PODS_ROOT}/Headers/Public/TabBarPicker" "${PODS_ROOT}/Headers/Public/pop"
OTHER_LDFLAGS = -ObjC
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View File

@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_TabBarPicker_Example_PureLayout : NSObject
@end
@implementation PodsDummy_Pods_TabBarPicker_Example_PureLayout
@end

View File

@ -0,0 +1,5 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-TabBarPicker_Example-environment.h"

View File

@ -0,0 +1,12 @@
#import <UIKit/UIKit.h>
#import "ALView+PureLayout.h"
#import "NSArray+PureLayout.h"
#import "NSLayoutConstraint+PureLayout.h"
#import "PureLayout+Internal.h"
#import "PureLayout.h"
#import "PureLayoutDefines.h"
FOUNDATION_EXPORT double PureLayoutVersionNumber;
FOUNDATION_EXPORT const unsigned char PureLayoutVersionString[];

View File

@ -0,0 +1,6 @@
framework module PureLayout {
umbrella header "Pods-TabBarPicker_Example-PureLayout-umbrella.h"
export *
module * { export * }
}

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@ -0,0 +1,11 @@
#include "Pods-TabBarPicker_Example-pop.xcconfig"
CLANG_CXX_LANGUAGE_STANDARD = ${PODS_TABBARPICKER_EXAMPLE_POP_CLANG_CXX_LANGUAGE_STANDARD}
CLANG_CXX_LIBRARY = ${PODS_TABBARPICKER_EXAMPLE_POP_CLANG_CXX_LIBRARY}
CONFIGURATION_BUILD_DIR = $PODS_FRAMEWORK_BUILD_PATH
FRAMEWORK_SEARCH_PATHS = "$PODS_FRAMEWORK_BUILD_PATH"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/pop" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/PureLayout" "${PODS_ROOT}/Headers/Public/TabBarPicker" "${PODS_ROOT}/Headers/Public/pop"
OTHER_LDFLAGS = ${PODS_TABBARPICKER_EXAMPLE_POP_OTHER_LDFLAGS} -ObjC
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View File

@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_TabBarPicker_Example_pop : NSObject
@end
@implementation PodsDummy_Pods_TabBarPicker_Example_pop
@end

View File

@ -0,0 +1,5 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-TabBarPicker_Example-environment.h"

View File

@ -0,0 +1,21 @@
#import <UIKit/UIKit.h>
#import "POP.h"
#import "POPAnimatableProperty.h"
#import "POPAnimation.h"
#import "POPAnimationEvent.h"
#import "POPAnimationExtras.h"
#import "POPAnimationTracer.h"
#import "POPAnimator.h"
#import "POPBasicAnimation.h"
#import "POPCustomAnimation.h"
#import "POPDecayAnimation.h"
#import "POPDefines.h"
#import "POPGeometry.h"
#import "POPLayerExtras.h"
#import "POPPropertyAnimation.h"
#import "POPSpringAnimation.h"
FOUNDATION_EXPORT double popVersionNumber;
FOUNDATION_EXPORT const unsigned char popVersionString[];

View File

@ -0,0 +1,6 @@
framework module pop {
umbrella header "Pods-TabBarPicker_Example-pop-umbrella.h"
export *
module * { export * }
}

View File

@ -0,0 +1,3 @@
PODS_TABBARPICKER_EXAMPLE_POP_CLANG_CXX_LANGUAGE_STANDARD = c++11
PODS_TABBARPICKER_EXAMPLE_POP_CLANG_CXX_LIBRARY = libc++
PODS_TABBARPICKER_EXAMPLE_POP_OTHER_LDFLAGS = -l"c++"

View File

@ -1,6 +1,19 @@
# Acknowledgements
This application makes use of the following third party libraries:
## PureLayout
This code is distributed under the terms and conditions of the MIT license.
Copyright (c) 2014-2015 Tyler Fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## TabBarPicker
Copyright (c) 2015 Giuseppe Nucifora <me@giuseppenucifora.com>
@ -23,4 +36,38 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## pop
BSD License
For Pop software
Copyright (c) 2014, Facebook, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Generated by CocoaPods - http://cocoapods.org

View File

@ -12,6 +12,23 @@
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>This code is distributed under the terms and conditions of the MIT license.
Copyright (c) 2014-2015 Tyler Fox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
</string>
<key>Title</key>
<string>PureLayout</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Copyright (c) 2015 Giuseppe Nucifora &lt;me@giuseppenucifora.com&gt;
@ -39,6 +56,44 @@ THE SOFTWARE.
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>BSD License
For Pop software
Copyright (c) 2014, Facebook, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</string>
<key>Title</key>
<string>pop</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>Generated by CocoaPods - http://cocoapods.org</string>

View File

@ -6,9 +6,21 @@
// project.
// PureLayout
#define COCOAPODS_POD_AVAILABLE_PureLayout
#define COCOAPODS_VERSION_MAJOR_PureLayout 2
#define COCOAPODS_VERSION_MINOR_PureLayout 0
#define COCOAPODS_VERSION_PATCH_PureLayout 6
// TabBarPicker
#define COCOAPODS_POD_AVAILABLE_TabBarPicker
#define COCOAPODS_VERSION_MAJOR_TabBarPicker 0
#define COCOAPODS_VERSION_MINOR_TabBarPicker 1
#define COCOAPODS_VERSION_PATCH_TabBarPicker 0
// pop
#define COCOAPODS_POD_AVAILABLE_pop
#define COCOAPODS_VERSION_MAJOR_pop 1
#define COCOAPODS_VERSION_MINOR_pop 0
#define COCOAPODS_VERSION_PATCH_pop 7

View File

@ -48,8 +48,12 @@ code_sign() {
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework 'PureLayout.framework'
install_framework 'TabBarPicker.framework'
install_framework 'pop.framework'
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework 'PureLayout.framework'
install_framework 'TabBarPicker.framework'
install_framework 'pop.framework'
fi

View File

@ -1,8 +1,8 @@
FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_FRAMEWORK_BUILD_PATH"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/TabBarPicker.framework/Headers"
OTHER_LDFLAGS = $(inherited) -ObjC -framework "TabBarPicker"
OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/PureLayout.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/TabBarPicker.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/pop.framework/Headers"
OTHER_LDFLAGS = $(inherited) -ObjC -framework "PureLayout" -framework "TabBarPicker" -framework "pop"
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
PODS_ROOT = ${SRCROOT}/Pods

View File

@ -1,8 +1,8 @@
FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_FRAMEWORK_BUILD_PATH"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/TabBarPicker.framework/Headers"
OTHER_LDFLAGS = $(inherited) -ObjC -framework "TabBarPicker"
OTHER_CFLAGS = $(inherited) -iquote "$PODS_FRAMEWORK_BUILD_PATH/PureLayout.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/TabBarPicker.framework/Headers" -iquote "$PODS_FRAMEWORK_BUILD_PATH/pop.framework/Headers"
OTHER_LDFLAGS = $(inherited) -ObjC -framework "PureLayout" -framework "TabBarPicker" -framework "pop"
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
PODS_ROOT = ${SRCROOT}/Pods

View File

@ -7,8 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
0F257582FF883DCBACD94BE4 /* Pods_TabBarPicker_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 20063DD2EE3185CBCBE97557 /* Pods_TabBarPicker_Example.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
17417A3E5936855A487EB190 /* Pods_TabBarPicker_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 237F470FDED70DC43285050F /* Pods_TabBarPicker_Tests.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
0C82E12AA6B21B9923F1513B /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DF8391D3904F99D24AFC56B7 /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
179C33542C5CE15556FFE8AB /* Pods_TabBarPicker_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FEB67354A0F6C45C1B502A65 /* Pods_TabBarPicker_Example.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
@ -23,8 +23,8 @@
6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; };
6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; };
68934F521B579CC0000022DE /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 68934F511B579CC0000022DE /* Media.xcassets */; };
82983DEFE8040C5C4FAC9026 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 130BC268E5502F6414A80D83 /* Pods.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; };
C80475EA65AD1B9A0B206ACD /* Pods_TabBarPicker_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5AADF60077A50EEA12BCBBD1 /* Pods_TabBarPicker_Tests.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -38,12 +38,10 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
130BC268E5502F6414A80D83 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1EC7F0FFEA16E01D7E2E02FD /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
20063DD2EE3185CBCBE97557 /* Pods_TabBarPicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TabBarPicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
237F470FDED70DC43285050F /* Pods_TabBarPicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TabBarPicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
307945FB633D00D016BD64BD /* Pods-TabBarPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TabBarPicker_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-TabBarPicker_Tests/Pods-TabBarPicker_Tests.debug.xcconfig"; sourceTree = "<group>"; };
3956BCE29C077B3AAC271032 /* Pods-TabBarPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TabBarPicker_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-TabBarPicker_Example/Pods-TabBarPicker_Example.release.xcconfig"; sourceTree = "<group>"; };
5AADF60077A50EEA12BCBBD1 /* Pods_TabBarPicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TabBarPicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
6003F58A195388D20070C39A /* TabBarPicker_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TabBarPicker_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
@ -69,6 +67,8 @@
873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
C4BDAB668CA96183CE444A37 /* TabBarPicker.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = TabBarPicker.podspec; path = ../TabBarPicker.podspec; sourceTree = "<group>"; };
CFD761FB492BA79F46F88611 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
DF8391D3904F99D24AFC56B7 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FEB67354A0F6C45C1B502A65 /* Pods_TabBarPicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TabBarPicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@ -79,8 +79,8 @@
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */,
6003F592195388D20070C39A /* UIKit.framework in Frameworks */,
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */,
0F257582FF883DCBACD94BE4 /* Pods_TabBarPicker_Example.framework in Frameworks */,
82983DEFE8040C5C4FAC9026 /* Pods.framework in Frameworks */,
0C82E12AA6B21B9923F1513B /* Pods.framework in Frameworks */,
179C33542C5CE15556FFE8AB /* Pods_TabBarPicker_Example.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -91,7 +91,7 @@
6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */,
6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */,
6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */,
17417A3E5936855A487EB190 /* Pods_TabBarPicker_Tests.framework in Frameworks */,
C80475EA65AD1B9A0B206ACD /* Pods_TabBarPicker_Tests.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -137,9 +137,9 @@
6003F58F195388D20070C39A /* CoreGraphics.framework */,
6003F591195388D20070C39A /* UIKit.framework */,
6003F5AF195388D20070C39A /* XCTest.framework */,
20063DD2EE3185CBCBE97557 /* Pods_TabBarPicker_Example.framework */,
237F470FDED70DC43285050F /* Pods_TabBarPicker_Tests.framework */,
130BC268E5502F6414A80D83 /* Pods.framework */,
DF8391D3904F99D24AFC56B7 /* Pods.framework */,
FEB67354A0F6C45C1B502A65 /* Pods_TabBarPicker_Example.framework */,
5AADF60077A50EEA12BCBBD1 /* Pods_TabBarPicker_Tests.framework */,
);
name = Frameworks;
sourceTree = "<group>";
@ -211,8 +211,8 @@
6003F586195388D20070C39A /* Sources */,
6003F587195388D20070C39A /* Frameworks */,
6003F588195388D20070C39A /* Resources */,
0E31C9676DFBC56089A9B4CC /* Embed Pods Frameworks */,
4F1BB894C32925ADCB8296E6 /* Copy Pods Resources */,
0CDA470EAD94FA9E75EE285F /* Embed Pods Frameworks */,
);
buildRules = (
);
@ -231,8 +231,8 @@
6003F5AA195388D20070C39A /* Sources */,
6003F5AB195388D20070C39A /* Frameworks */,
6003F5AC195388D20070C39A /* Resources */,
272CC18661EC68B765A50293 /* Embed Pods Frameworks */,
1CD8731AACB051C7B542519A /* Copy Pods Resources */,
7ABB977EC6A0CE859EC949C1 /* Embed Pods Frameworks */,
);
buildRules = (
);
@ -301,7 +301,7 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
0E31C9676DFBC56089A9B4CC /* Embed Pods Frameworks */ = {
0CDA470EAD94FA9E75EE285F /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
@ -313,7 +313,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TabBarPicker_Example/Pods-TabBarPicker_Example-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
1CD8731AACB051C7B542519A /* Copy Pods Resources */ = {
@ -331,21 +331,6 @@
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TabBarPicker_Tests/Pods-TabBarPicker_Tests-resources.sh\"\n";
showEnvVarsInLog = 0;
};
272CC18661EC68B765A50293 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TabBarPicker_Tests/Pods-TabBarPicker_Tests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
4F1BB894C32925ADCB8296E6 /* Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@ -376,6 +361,21 @@
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
7ABB977EC6A0CE859EC949C1 /* Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TabBarPicker_Tests/Pods-TabBarPicker_Tests-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
D0E97B29CE6B26659B2D4E00 /* Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;

View File

@ -35,6 +35,7 @@
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>

View File

@ -8,6 +8,7 @@
#import "TabBarPickerViewController.h"
#import "TabBarPicker.h"
#import <PureLayout/PureLayout.h>
@interface TabBarPickerViewController () {
TabBarPicker *tabbar;
@ -22,8 +23,6 @@
self = [super init];
if (self) {
NSLog(@"%ld",(long)[TabBarPicker tabBarVersion]);
TabBarSubItem *subItem1 = [TabBarSubItem tabBarSubItemWithName:@"Peppe"];
TabBarSubItem *subItem2 = [TabBarSubItem tabBarSubItemWithName:@"Peppe1"];
@ -71,9 +70,17 @@
[contentView addSubview:tabbar];
/*[tabbar autoPinEdgesToSuperviewMarginsExcludingEdge:ALEdgeTop];
tabbar ali
[tabbar autoPinEdgeToSuperviewEdge:ALEdgeLeft withInset:50 relation:NSLayoutRelationGreaterThanOrEqual];
[tabbar autoPinEdgeToSuperviewEdge:ALEdgeRight withInset:50 relation:NSLayoutRelationGreaterThanOrEqual];
*/
NSLog(@"%f %f",tabbar.frame.size.width,tabbar.frame.size.height);
self.view = contentView;
[self.view setNeedsUpdateConstraints];
}
- (void)viewDidLoad

View File

@ -9,6 +9,12 @@
#import "TabBarItem.h"
#import <PureLayout/PureLayout.h>
@interface TabBarItem()
@property (nonatomic) UIDeviceOrientation orientation;
@end
@implementation TabBarItem
- (instancetype) initWithSubItems:(NSArray*) array {
@ -16,6 +22,8 @@
if (self) {
NSAssert(array, @"SubItemsArray cannot be nil");
_orientation = [[UIDevice currentDevice] orientation];
[[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(deviceOrientationDidChange:) name: UIDeviceOrientationDidChangeNotification object: nil];
_subItems = [[NSMutableArray alloc] init];
@ -28,4 +36,11 @@
return self;
}
- (void)deviceOrientationDidChange:(NSNotification *)notification {
//Obtain current device orientation
_orientation = [[UIDevice currentDevice] orientation];
}
@end

View File

@ -25,8 +25,6 @@ typedef enum
@property (nonatomic, readonly) CGSize tabBarSize;
@property (nonatomic) TabBarPickerPosition position;
+ (NSString*) tabBarVersion;
/**
* Init TabBarPicker with items. When is selected an item the picher show down subitems.
* By default when one of more subItems are selected the selected item become selected.

View File

@ -12,22 +12,16 @@
#define tabBarSizeVertical CGSizeMake()
@interface TabBarPicker(){
}
@interface TabBarPicker()
@property (nonatomic) UIDeviceOrientation orientation;
@end
@implementation TabBarPicker
+ (NSString*) tabBarVersion {
return @"1";
}
- (instancetype) initWithTabBarItems:(NSArray *)items forPosition:(TabBarPickerPosition)position {
NSLog(@"init");
return [self initWithTabBarItems:items withTabBarSize:CGSizeZero forPosition:position];
}
@ -37,10 +31,14 @@
self = [self initForAutoLayout];
if (self) {
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(deviceOrientationDidChange:) name: UIDeviceOrientationDidChangeNotification object: nil];
NSAssert(items, @"TabBar Items array cannot be nil!");
if (CGSizeEqualToSize(size, CGSizeZero)) {
_tabBarSize = CGSizeMake([[UIScreen mainScreen] bounds].size.width, 100);
_tabBarSize = CGSizeMake([[UIScreen mainScreen] bounds].size.width, 44);
}
_tabBarItems = [[NSMutableArray alloc] init];
@ -52,20 +50,33 @@
}
}
NSLog(@"prova");
[self autoSetDimension:ALDimensionWidth toSize:[[UIScreen mainScreen] bounds].size.width relation:NSLayoutRelationLessThanOrEqual];
[self autoSetDimension:ALDimensionHeight toSize:_tabBarSize.height relation:NSLayoutRelationLessThanOrEqual];
for (TabBarItem *item in _tabBarItems) {
}
return self;
}
- (void) layoutSubviews {
[self autoSetDimension:ALDimensionHeight toSize:44];
[self autoMatchDimension:ALDimensionWidth toDimension:ALDimensionWidth ofView:self.superview];
[self autoPinEdgeToSuperviewMargin:ALEdgeBottom];
for (TabBarItem *item in _tabBarItems) {
}
}
- (void)deviceOrientationDidChange:(NSNotification *)notification {
//Obtain current device orientation
_orientation = [[UIDevice currentDevice] orientation];
[self layoutSubviews];
}
- (void) layoutSubviewsPortrait {
}
- (void) layoutSubviewsLandScape {
}

View File

@ -9,6 +9,12 @@
#import "TabBarSubItem.h"
#import <PureLayout/PureLayout.h>
@interface TabBarSubItem()
@property (nonatomic) UIDeviceOrientation orientation;
@end
@implementation TabBarSubItem
@ -16,6 +22,9 @@
self = [self initForAutoLayout];
if (self) {
[[NSNotificationCenter defaultCenter] addObserver: self selector:@selector(deviceOrientationDidChange:) name: UIDeviceOrientationDidChangeNotification object: nil];
_name = name;
}
return self;
@ -25,4 +34,12 @@
return [[self alloc] initWithName:name];
}
- (void)deviceOrientationDidChange:(NSNotification *)notification {
//Obtain current device orientation
_orientation = [[UIDevice currentDevice] orientation];
}
@end