Merge pull request #19 from anlcan/master

OK Button
This commit is contained in:
Victor Baro
2014-12-08 17:10:48 +00:00
73 changed files with 3236 additions and 2969 deletions

View File

@@ -1,3 +1,4 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'UIColor+FlatColors','~>0.0.2'

View File

@@ -3,11 +3,11 @@ PODS:
- UIColor+FlatColors (0.0.2)
DEPENDENCIES:
- pop
- UIColor+FlatColors
- pop (~> 1.0.6)
- UIColor+FlatColors (~> 0.0.2)
SPEC CHECKSUMS:
pop: e518794da38942c05255eb64b36d894e70cb4f00
UIColor+FlatColors: 15506ef6472e26a751033f2f2469283800bcb906
COCOAPODS: 0.33.1
COCOAPODS: 0.34.2

View File

@@ -1 +0,0 @@
../../UIColor+FlatColors/UIColor+FlatColors/UIColor+FlatColors.h

View File

@@ -1 +0,0 @@
../../pop/pop/WebCore/FloatConversion.h

View File

@@ -1 +0,0 @@
../../pop/pop/POP.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAction.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimatableProperty.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationEvent.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationEventInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationExtras.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationPrivate.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationRuntime.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationTracer.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationTracerInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimator.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimatorPrivate.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPBasicAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPBasicAnimationInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPCGUtils.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPCustomAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPDecayAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPDecayAnimationInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPDefines.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPGeometry.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPLayerExtras.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPMath.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPPropertyAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPPropertyAnimationInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPSpringAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPSpringAnimationInternal.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPSpringSolver.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPVector.h

View File

@@ -1 +0,0 @@
../../pop/pop/WebCore/TransformationMatrix.h

View File

@@ -1 +0,0 @@
../../pop/pop/WebCore/UnitBezier.h

View File

@@ -1 +0,0 @@
../../UIColor+FlatColors/UIColor+FlatColors/UIColor+FlatColors.h

View File

@@ -1 +0,0 @@
../../pop/pop/POP.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimatableProperty.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationEvent.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationExtras.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimationTracer.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPAnimator.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPBasicAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPCustomAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPDecayAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPDefines.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPGeometry.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPLayerExtras.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPPropertyAnimation.h

View File

@@ -1 +0,0 @@
../../pop/pop/POPSpringAnimation.h

6
Pods/Manifest.lock generated
View File

@@ -3,11 +3,11 @@ PODS:
- UIColor+FlatColors (0.0.2)
DEPENDENCIES:
- pop
- UIColor+FlatColors
- pop (~> 1.0.6)
- UIColor+FlatColors (~> 0.0.2)
SPEC CHECKSUMS:
pop: e518794da38942c05255eb64b36d894e70cb4f00
UIColor+FlatColors: 15506ef6472e26a751033f2f2469283800bcb906
COCOAPODS: 0.33.1
COCOAPODS: 0.34.2

View File

@@ -1,5 +0,0 @@
#include "Pods-UIColor+FlatColors.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/UIColor+FlatColors" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/UIColor+FlatColors" "${PODS_ROOT}/Headers/pop"
OTHER_LDFLAGS = -ObjC
PODS_ROOT = ${SRCROOT}

View File

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

View File

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

View File

View File

@@ -1,61 +0,0 @@
# Acknowledgements
This application makes use of the following third party libraries:
## UIColor+FlatColors
The MIT License (MIT)
Copyright (c) 2014 Giovanni Lodi
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.
## 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

@@ -1,95 +0,0 @@
<?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>PreferenceSpecifiers</key>
<array>
<dict>
<key>FooterText</key>
<string>This application makes use of the following third party libraries:</string>
<key>Title</key>
<string>Acknowledgements</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>The MIT License (MIT)
Copyright (c) 2014 Giovanni Lodi
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>UIColor+FlatColors</string>
<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>
<key>Title</key>
<string></string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
</array>
<key>StringsTable</key>
<string>Acknowledgements</string>
<key>Title</key>
<string>Acknowledgements</string>
</dict>
</plist>

5
Pods/Pods-dummy.m generated
View File

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

View File

@@ -1,20 +0,0 @@
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// UIColor+FlatColors
#define COCOAPODS_POD_AVAILABLE_UIColor_FlatColors
#define COCOAPODS_VERSION_MAJOR_UIColor_FlatColors 0
#define COCOAPODS_VERSION_MINOR_UIColor_FlatColors 0
#define COCOAPODS_VERSION_PATCH_UIColor_FlatColors 2
// pop
#define COCOAPODS_POD_AVAILABLE_pop
#define COCOAPODS_VERSION_MAJOR_pop 1
#define COCOAPODS_VERSION_MINOR_pop 0
#define COCOAPODS_VERSION_PATCH_pop 6

View File

@@ -1,7 +0,0 @@
#include "Pods-pop.xcconfig"
CLANG_CXX_LANGUAGE_STANDARD = ${PODS_POP_CLANG_CXX_LANGUAGE_STANDARD}
CLANG_CXX_LIBRARY = ${PODS_POP_CLANG_CXX_LIBRARY}
GCC_PREPROCESSOR_DEFINITIONS = COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/BuildHeaders" "${PODS_ROOT}/BuildHeaders/pop" "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/UIColor+FlatColors" "${PODS_ROOT}/Headers/pop"
OTHER_LDFLAGS = -ObjC ${PODS_POP_OTHER_LDFLAGS}
PODS_ROOT = ${SRCROOT}

5
Pods/Pods-pop-dummy.m generated
View File

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

View File

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

View File

@@ -1,3 +0,0 @@
PODS_POP_CLANG_CXX_LANGUAGE_STANDARD = c++11
PODS_POP_CLANG_CXX_LIBRARY = libc++
PODS_POP_OTHER_LDFLAGS = -lc++

68
Pods/Pods-resources.sh generated
View File

@@ -1,68 +0,0 @@
#!/bin/sh
set -e
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.xib)
echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
;;
*.framework)
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
;;
*.xcdatamodel)
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\""
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom"
;;
*.xcdatamodeld)
echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\""
xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd"
;;
*.xcassets)
;;
/*)
echo "$1"
echo "$1" >> "$RESOURCES_TO_COPY"
;;
*)
echo "${PODS_ROOT}/$1"
echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
;;
esac
}
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [[ "${ACTION}" == "install" ]]; then
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi
rm -f "$RESOURCES_TO_COPY"
if [[ -n "${WRAPPER_EXTENSION}" ]] && [ `xcrun --find actool` ] && [ `find . -name '*.xcassets' | wc -l` -ne 0 ]
then
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
TARGET_DEVICE_ARGS="--target-device iphone"
;;
2)
TARGET_DEVICE_ARGS="--target-device ipad"
;;
*)
TARGET_DEVICE_ARGS="--target-device mac"
;;
esac
find "${PWD}" -name "*.xcassets" -print0 | xargs -0 actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
fi

7
Pods/Pods.xcconfig generated
View File

@@ -1,7 +0,0 @@
CLANG_CXX_LANGUAGE_STANDARD = c++11
CLANG_CXX_LIBRARY = libc++
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/UIColor+FlatColors" "${PODS_ROOT}/Headers/pop"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers" -isystem "${PODS_ROOT}/Headers/UIColor+FlatColors" -isystem "${PODS_ROOT}/Headers/pop"
OTHER_LDFLAGS = -ObjC -lc++
PODS_ROOT = ${SRCROOT}/Pods

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="14A379a" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="14A388a" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
<dependencies>
<deployment defaultVersion="1792" identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
</dependencies>
<scenes>
@@ -196,6 +197,16 @@
<action selector="buttonPressed:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="l2Q-Ei-MpP"/>
</connections>
</button>
<button opaque="NO" tag="17" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TeS-AT-m1u">
<rect key="frame" x="145" y="225" width="30" height="30"/>
<state key="normal" title="OK">
<color key="titleColor" red="0.99989169840000003" green="1" blue="0.99988096950000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="buttonPressed:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="rkJ-a1-Cag"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.23510167709999999" green="0.62573839249999996" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</view>

View File

@@ -28,6 +28,7 @@ typedef NS_ENUM(NSInteger, FlatButtonType) {
buttonLeftTriangleType,
buttonUpTriangleType,
buttonDownTriangleType,
buttonOkType,
};
typedef NS_ENUM(NSInteger, FlatButtonStyle) {

View File

@@ -328,8 +328,16 @@
secondOriginPoint.y += self.bounds.size.width/8;
thirdOriginPoint.y -= self.bounds.size.width * 0.30;
break;
case buttonOkType:
self.thirdSegment.opacity = 0.0;
[self.firstSegment moveToState:doubleSegmentBackSlashState45 animated:self.animateToStartPosition];
[self.secondSegment moveToState:doubleSegmentDownArrow animated:self.animateToStartPosition];
firstOriginPoint.y += self.bounds.size.width/6;
secondOriginPoint.y += self.bounds.size.width/2;
firstOriginPoint.x += self.bounds.size.width * 0.19;
secondOriginPoint.x -= self.bounds.size.width * 0.14;
break;
default:
break;
}

View File

@@ -10,7 +10,7 @@
#import "UIColor+FlatColors.h"
#import "VBFPopFlatButton.h"
#define NUM_BUTTON_STATES 17
#define NUM_BUTTON_STATES 18
@interface ViewController ()
@property (nonatomic, strong) VBFPopFlatButton *flatRoundedButton;