- Add Alert block
This commit is contained in:
parent
dfd5420089
commit
ab1b14b4e2
@ -4,12 +4,16 @@ use_frameworks!
|
|||||||
inhibit_all_warnings!
|
inhibit_all_warnings!
|
||||||
pod 'PureLayout'
|
pod 'PureLayout'
|
||||||
pod 'pop', '~> 1.0'
|
pod 'pop', '~> 1.0'
|
||||||
|
pod 'UIActionSheet-Blocks'
|
||||||
|
pod 'UIAlertViewBlockExtension'
|
||||||
|
|
||||||
target 'TabBarPicker_Example', :exclusive => true do
|
target 'TabBarPicker_Example', :exclusive => true do
|
||||||
pod "TabBarPicker", :path => "../"
|
pod "TabBarPicker", :path => "../"
|
||||||
pod 'PureLayout'
|
pod 'PureLayout'
|
||||||
pod 'pop', '~> 1.0'
|
pod 'pop', '~> 1.0'
|
||||||
pod 'UIView-Overlay'
|
pod 'UIView-Overlay'
|
||||||
|
pod 'UIActionSheet-Blocks'
|
||||||
|
pod 'UIAlertViewBlockExtension'
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -2,12 +2,16 @@ PODS:
|
|||||||
- pop (1.0.7)
|
- pop (1.0.7)
|
||||||
- PureLayout (3.0.0)
|
- PureLayout (3.0.0)
|
||||||
- TabBarPicker (0.1.0)
|
- TabBarPicker (0.1.0)
|
||||||
|
- UIActionSheet-Blocks (1.0.1)
|
||||||
|
- UIAlertViewBlockExtension (1.0.1)
|
||||||
- UIView-Overlay (0.1)
|
- UIView-Overlay (0.1)
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- pop (~> 1.0)
|
- pop (~> 1.0)
|
||||||
- PureLayout
|
- PureLayout
|
||||||
- TabBarPicker (from `../`)
|
- TabBarPicker (from `../`)
|
||||||
|
- UIActionSheet-Blocks
|
||||||
|
- UIAlertViewBlockExtension
|
||||||
- UIView-Overlay
|
- UIView-Overlay
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
@ -18,6 +22,8 @@ SPEC CHECKSUMS:
|
|||||||
pop: 628ffc631644601567ee8bfaaaea493ebd7d0923
|
pop: 628ffc631644601567ee8bfaaaea493ebd7d0923
|
||||||
PureLayout: 270dfee2236f697ab1d5e2771c2e5c248495fa0d
|
PureLayout: 270dfee2236f697ab1d5e2771c2e5c248495fa0d
|
||||||
TabBarPicker: 0b8b0c04ad47ed9c740cef5d31cac7fefe6cb273
|
TabBarPicker: 0b8b0c04ad47ed9c740cef5d31cac7fefe6cb273
|
||||||
|
UIActionSheet-Blocks: a5781709d4c7e1bf81e0498caf187ab0535e5caf
|
||||||
|
UIAlertViewBlockExtension: b4b0a1e62c94170bacce519a2b16afbc81673714
|
||||||
UIView-Overlay: 95e42e733f6fdcfca523a399ba7907d0ca4570a0
|
UIView-Overlay: 95e42e733f6fdcfca523a399ba7907d0ca4570a0
|
||||||
|
|
||||||
COCOAPODS: 0.38.2
|
COCOAPODS: 0.38.2
|
||||||
|
|||||||
1
Example/Pods/Headers/Private/UIActionSheet-Blocks/UIActionSheet+Blocks.h
generated
Symbolic link
1
Example/Pods/Headers/Private/UIActionSheet-Blocks/UIActionSheet+Blocks.h
generated
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../UIActionSheet-Blocks/UIActionSheet+Blocks.h
|
||||||
1
Example/Pods/Headers/Private/UIAlertViewBlockExtension/AlertViewActionDispatcher.h
generated
Symbolic link
1
Example/Pods/Headers/Private/UIAlertViewBlockExtension/AlertViewActionDispatcher.h
generated
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../UIAlertViewBlockExtension/AlertViewExamples/UIAlertViewBlockExtension/AlertViewActionDispatcher.h
|
||||||
1
Example/Pods/Headers/Private/UIAlertViewBlockExtension/UIAlertView+BlockExtension.h
generated
Symbolic link
1
Example/Pods/Headers/Private/UIAlertViewBlockExtension/UIAlertView+BlockExtension.h
generated
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../UIAlertViewBlockExtension/AlertViewExamples/UIAlertViewBlockExtension/UIAlertView+BlockExtension.h
|
||||||
6
Example/Pods/Manifest.lock
generated
6
Example/Pods/Manifest.lock
generated
@ -2,12 +2,16 @@ PODS:
|
|||||||
- pop (1.0.7)
|
- pop (1.0.7)
|
||||||
- PureLayout (3.0.0)
|
- PureLayout (3.0.0)
|
||||||
- TabBarPicker (0.1.0)
|
- TabBarPicker (0.1.0)
|
||||||
|
- UIActionSheet-Blocks (1.0.1)
|
||||||
|
- UIAlertViewBlockExtension (1.0.1)
|
||||||
- UIView-Overlay (0.1)
|
- UIView-Overlay (0.1)
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- pop (~> 1.0)
|
- pop (~> 1.0)
|
||||||
- PureLayout
|
- PureLayout
|
||||||
- TabBarPicker (from `../`)
|
- TabBarPicker (from `../`)
|
||||||
|
- UIActionSheet-Blocks
|
||||||
|
- UIAlertViewBlockExtension
|
||||||
- UIView-Overlay
|
- UIView-Overlay
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
@ -18,6 +22,8 @@ SPEC CHECKSUMS:
|
|||||||
pop: 628ffc631644601567ee8bfaaaea493ebd7d0923
|
pop: 628ffc631644601567ee8bfaaaea493ebd7d0923
|
||||||
PureLayout: 270dfee2236f697ab1d5e2771c2e5c248495fa0d
|
PureLayout: 270dfee2236f697ab1d5e2771c2e5c248495fa0d
|
||||||
TabBarPicker: 0b8b0c04ad47ed9c740cef5d31cac7fefe6cb273
|
TabBarPicker: 0b8b0c04ad47ed9c740cef5d31cac7fefe6cb273
|
||||||
|
UIActionSheet-Blocks: a5781709d4c7e1bf81e0498caf187ab0535e5caf
|
||||||
|
UIAlertViewBlockExtension: b4b0a1e62c94170bacce519a2b16afbc81673714
|
||||||
UIView-Overlay: 95e42e733f6fdcfca523a399ba7907d0ca4570a0
|
UIView-Overlay: 95e42e733f6fdcfca523a399ba7907d0ca4570a0
|
||||||
|
|
||||||
COCOAPODS: 0.38.2
|
COCOAPODS: 0.38.2
|
||||||
|
|||||||
1040
Example/Pods/Pods.xcodeproj/project.pbxproj
generated
1040
Example/Pods/Pods.xcodeproj/project.pbxproj
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,7 @@
|
|||||||
buildForAnalyzing = "YES">
|
buildForAnalyzing = "YES">
|
||||||
<BuildableReference
|
<BuildableReference
|
||||||
BuildableIdentifier = "primary"
|
BuildableIdentifier = "primary"
|
||||||
BlueprintIdentifier = "CBB966AFD951D7E5D5A60409"
|
BlueprintIdentifier = "3CF761A949F3352DCFF7109B"
|
||||||
BuildableName = "TabBarPicker.framework"
|
BuildableName = "TabBarPicker.framework"
|
||||||
BlueprintName = "TabBarPicker"
|
BlueprintName = "TabBarPicker"
|
||||||
ReferencedContainer = "container:Pods.xcodeproj">
|
ReferencedContainer = "container:Pods.xcodeproj">
|
||||||
|
|||||||
@ -14,6 +14,42 @@ The above copyright notice and this permission notice shall be included in all c
|
|||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
## UIActionSheet-Blocks
|
||||||
|
|
||||||
|
Copyright (C) 2013 Developed by Shai Mishali
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
## UIAlertViewBlockExtension
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 mangofever
|
||||||
|
|
||||||
|
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
|
## pop
|
||||||
|
|
||||||
BSD License
|
BSD License
|
||||||
|
|||||||
@ -29,6 +29,50 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>PSGroupSpecifier</string>
|
<string>PSGroupSpecifier</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>Copyright (C) 2013 Developed by Shai Mishali
|
||||||
|
|
||||||
|
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>UIActionSheet-Blocks</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 mangofever
|
||||||
|
|
||||||
|
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>UIAlertViewBlockExtension</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>FooterText</key>
|
<key>FooterText</key>
|
||||||
<string>BSD License
|
<string>BSD License
|
||||||
|
|||||||
@ -53,12 +53,16 @@ code_sign_if_enabled() {
|
|||||||
|
|
||||||
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
||||||
install_framework 'Pods-TabBarPicker_Example/PureLayout.framework'
|
install_framework 'Pods-TabBarPicker_Example/PureLayout.framework'
|
||||||
|
install_framework 'Pods-TabBarPicker_Example/UIActionSheet_Blocks.framework'
|
||||||
|
install_framework 'Pods-TabBarPicker_Example/UIAlertViewBlockExtension.framework'
|
||||||
install_framework 'Pods-TabBarPicker_Example/pop.framework'
|
install_framework 'Pods-TabBarPicker_Example/pop.framework'
|
||||||
install_framework 'Pods-TabBarPicker_Example/TabBarPicker.framework'
|
install_framework 'Pods-TabBarPicker_Example/TabBarPicker.framework'
|
||||||
install_framework 'Pods-TabBarPicker_Example/UIView_Overlay.framework'
|
install_framework 'Pods-TabBarPicker_Example/UIView_Overlay.framework'
|
||||||
fi
|
fi
|
||||||
if [[ "$CONFIGURATION" == "Release" ]]; then
|
if [[ "$CONFIGURATION" == "Release" ]]; then
|
||||||
install_framework 'Pods-TabBarPicker_Example/PureLayout.framework'
|
install_framework 'Pods-TabBarPicker_Example/PureLayout.framework'
|
||||||
|
install_framework 'Pods-TabBarPicker_Example/UIActionSheet_Blocks.framework'
|
||||||
|
install_framework 'Pods-TabBarPicker_Example/UIAlertViewBlockExtension.framework'
|
||||||
install_framework 'Pods-TabBarPicker_Example/pop.framework'
|
install_framework 'Pods-TabBarPicker_Example/pop.framework'
|
||||||
install_framework 'Pods-TabBarPicker_Example/TabBarPicker.framework'
|
install_framework 'Pods-TabBarPicker_Example/TabBarPicker.framework'
|
||||||
install_framework 'Pods-TabBarPicker_Example/UIView_Overlay.framework'
|
install_framework 'Pods-TabBarPicker_Example/UIView_Overlay.framework'
|
||||||
|
|||||||
@ -2,7 +2,7 @@ CLANG_CXX_LANGUAGE_STANDARD = c++11
|
|||||||
CLANG_CXX_LIBRARY = libc++
|
CLANG_CXX_LIBRARY = libc++
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/TabBarPicker.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIView_Overlay.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/TabBarPicker.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIActionSheet_Blocks.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIAlertViewBlockExtension.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIView_Overlay.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "TabBarPicker" -framework "UIView_Overlay" -framework "pop"
|
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "TabBarPicker" -framework "UIActionSheet_Blocks" -framework "UIAlertViewBlockExtension" -framework "UIView_Overlay" -framework "pop"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
@ -2,7 +2,7 @@ CLANG_CXX_LANGUAGE_STANDARD = c++11
|
|||||||
CLANG_CXX_LIBRARY = libc++
|
CLANG_CXX_LIBRARY = libc++
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/TabBarPicker.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIView_Overlay.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/TabBarPicker.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIActionSheet_Blocks.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIAlertViewBlockExtension.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIView_Overlay.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "TabBarPicker" -framework "UIView_Overlay" -framework "pop"
|
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "TabBarPicker" -framework "UIActionSheet_Blocks" -framework "UIAlertViewBlockExtension" -framework "UIView_Overlay" -framework "pop"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods-TabBarPicker_Example
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
@ -14,6 +14,42 @@ The above copyright notice and this permission notice shall be included in all c
|
|||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
## UIActionSheet-Blocks
|
||||||
|
|
||||||
|
Copyright (C) 2013 Developed by Shai Mishali
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
## UIAlertViewBlockExtension
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 mangofever
|
||||||
|
|
||||||
|
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
|
## pop
|
||||||
|
|
||||||
BSD License
|
BSD License
|
||||||
|
|||||||
@ -29,6 +29,50 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|||||||
<key>Type</key>
|
<key>Type</key>
|
||||||
<string>PSGroupSpecifier</string>
|
<string>PSGroupSpecifier</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>Copyright (C) 2013 Developed by Shai Mishali
|
||||||
|
|
||||||
|
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>UIActionSheet-Blocks</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>FooterText</key>
|
||||||
|
<string>The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 mangofever
|
||||||
|
|
||||||
|
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>UIAlertViewBlockExtension</string>
|
||||||
|
<key>Type</key>
|
||||||
|
<string>PSGroupSpecifier</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>FooterText</key>
|
<key>FooterText</key>
|
||||||
<string>BSD License
|
<string>BSD License
|
||||||
|
|||||||
@ -53,9 +53,13 @@ code_sign_if_enabled() {
|
|||||||
|
|
||||||
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
if [[ "$CONFIGURATION" == "Debug" ]]; then
|
||||||
install_framework 'Pods/PureLayout.framework'
|
install_framework 'Pods/PureLayout.framework'
|
||||||
|
install_framework 'Pods/UIActionSheet_Blocks.framework'
|
||||||
|
install_framework 'Pods/UIAlertViewBlockExtension.framework'
|
||||||
install_framework 'Pods/pop.framework'
|
install_framework 'Pods/pop.framework'
|
||||||
fi
|
fi
|
||||||
if [[ "$CONFIGURATION" == "Release" ]]; then
|
if [[ "$CONFIGURATION" == "Release" ]]; then
|
||||||
install_framework 'Pods/PureLayout.framework'
|
install_framework 'Pods/PureLayout.framework'
|
||||||
|
install_framework 'Pods/UIActionSheet_Blocks.framework'
|
||||||
|
install_framework 'Pods/UIAlertViewBlockExtension.framework'
|
||||||
install_framework 'Pods/pop.framework'
|
install_framework 'Pods/pop.framework'
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -2,7 +2,7 @@ CLANG_CXX_LANGUAGE_STANDARD = c++11
|
|||||||
CLANG_CXX_LIBRARY = libc++
|
CLANG_CXX_LIBRARY = libc++
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIActionSheet_Blocks.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIAlertViewBlockExtension.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "pop"
|
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "UIActionSheet_Blocks" -framework "UIAlertViewBlockExtension" -framework "pop"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
@ -2,7 +2,7 @@ CLANG_CXX_LANGUAGE_STANDARD = c++11
|
|||||||
CLANG_CXX_LIBRARY = libc++
|
CLANG_CXX_LIBRARY = libc++
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
|
||||||
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/PureLayout.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIActionSheet_Blocks.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/UIAlertViewBlockExtension.framework/Headers" -iquote "$CONFIGURATION_BUILD_DIR/pop.framework/Headers"
|
||||||
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "pop"
|
OTHER_LDFLAGS = $(inherited) -framework "PureLayout" -framework "UIActionSheet_Blocks" -framework "UIAlertViewBlockExtension" -framework "pop"
|
||||||
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods
|
PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods
|
||||||
PODS_ROOT = ${SRCROOT}/Pods
|
PODS_ROOT = ${SRCROOT}/Pods
|
||||||
26
Example/Pods/Target Support Files/UIActionSheet-Blocks/Info.plist
generated
Normal file
26
Example/Pods/Target Support Files/UIActionSheet-Blocks/Info.plist
generated
Normal 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.1</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${CURRENT_PROJECT_VERSION}</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
5
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-Private.xcconfig
generated
Normal file
5
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-Private.xcconfig
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#include "UIActionSheet-Blocks.xcconfig"
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
|
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/UIActionSheet-Blocks" "${PODS_ROOT}/Headers/Public"
|
||||||
|
PODS_ROOT = ${SRCROOT}
|
||||||
|
SKIP_INSTALL = YES
|
||||||
5
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-dummy.m
generated
Normal file
5
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-dummy.m
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
@interface PodsDummy_UIActionSheet_Blocks : NSObject
|
||||||
|
@end
|
||||||
|
@implementation PodsDummy_UIActionSheet_Blocks
|
||||||
|
@end
|
||||||
4
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-prefix.pch
generated
Normal file
4
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-prefix.pch
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#ifdef __OBJC__
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
7
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-umbrella.h
generated
Normal file
7
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks-umbrella.h
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
#import "UIActionSheet+Blocks.h"
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT double UIActionSheet_BlocksVersionNumber;
|
||||||
|
FOUNDATION_EXPORT const unsigned char UIActionSheet_BlocksVersionString[];
|
||||||
|
|
||||||
6
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks.modulemap
generated
Normal file
6
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks.modulemap
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
framework module UIActionSheet_Blocks {
|
||||||
|
umbrella header "UIActionSheet-Blocks-umbrella.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
module * { export * }
|
||||||
|
}
|
||||||
0
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks.xcconfig
generated
Normal file
0
Example/Pods/Target Support Files/UIActionSheet-Blocks/UIActionSheet-Blocks.xcconfig
generated
Normal file
26
Example/Pods/Target Support Files/UIAlertViewBlockExtension/Info.plist
generated
Normal file
26
Example/Pods/Target Support Files/UIAlertViewBlockExtension/Info.plist
generated
Normal 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.1</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${CURRENT_PROJECT_VERSION}</string>
|
||||||
|
<key>NSPrincipalClass</key>
|
||||||
|
<string></string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
#include "UIAlertViewBlockExtension.xcconfig"
|
||||||
|
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
|
||||||
|
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/UIAlertViewBlockExtension" "${PODS_ROOT}/Headers/Public"
|
||||||
|
PODS_ROOT = ${SRCROOT}
|
||||||
|
SKIP_INSTALL = YES
|
||||||
5
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension-dummy.m
generated
Normal file
5
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension-dummy.m
generated
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
@interface PodsDummy_UIAlertViewBlockExtension : NSObject
|
||||||
|
@end
|
||||||
|
@implementation PodsDummy_UIAlertViewBlockExtension
|
||||||
|
@end
|
||||||
4
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension-prefix.pch
generated
Normal file
4
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension-prefix.pch
generated
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#ifdef __OBJC__
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
8
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension-umbrella.h
generated
Normal file
8
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension-umbrella.h
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
#import "AlertViewActionDispatcher.h"
|
||||||
|
#import "UIAlertView+BlockExtension.h"
|
||||||
|
|
||||||
|
FOUNDATION_EXPORT double UIAlertViewBlockExtensionVersionNumber;
|
||||||
|
FOUNDATION_EXPORT const unsigned char UIAlertViewBlockExtensionVersionString[];
|
||||||
|
|
||||||
6
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension.modulemap
generated
Normal file
6
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension.modulemap
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
framework module UIAlertViewBlockExtension {
|
||||||
|
umbrella header "UIAlertViewBlockExtension-umbrella.h"
|
||||||
|
|
||||||
|
export *
|
||||||
|
module * { export * }
|
||||||
|
}
|
||||||
0
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension.xcconfig
generated
Normal file
0
Example/Pods/Target Support Files/UIAlertViewBlockExtension/UIAlertViewBlockExtension.xcconfig
generated
Normal file
7
Example/Pods/UIActionSheet-Blocks/LICENSE
generated
Normal file
7
Example/Pods/UIActionSheet-Blocks/LICENSE
generated
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Copyright (C) 2013 Developed by Shai Mishali
|
||||||
|
|
||||||
|
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.
|
||||||
72
Example/Pods/UIActionSheet-Blocks/README.md
generated
Normal file
72
Example/Pods/UIActionSheet-Blocks/README.md
generated
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
UIActionSheet-Blocks
|
||||||
|
================
|
||||||
|
|
||||||
|
UIActionSheet+Blocks is a simple Block implementation for UIActionSheet created by Shai Mishali.
|
||||||
|
This allows you to use the power of blocks instead of implementing a delegate.
|
||||||
|
|
||||||
|
USAGE
|
||||||
|
------
|
||||||
|
|
||||||
|
Instead of allocating a new UIActionSheet and assigning a delegate, just call one of the static methods:
|
||||||
|
|
||||||
|
```objc
|
||||||
|
UIActionSheet *sheet = [UIActionSheet presentOnView:self.view
|
||||||
|
withTitle:@"Select Picture"
|
||||||
|
otherButtons:@[@"Camera Roll", @"Take a Picture"]
|
||||||
|
onCancel:^(UIActionSheet *actionSheet) {
|
||||||
|
NSLog(@"Touched cancel button");
|
||||||
|
}
|
||||||
|
onClickedButton:^(UIActionSheet *actionSheet, NSUInteger index) {
|
||||||
|
NSLog(@"Selected button at index %d", index);
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
**OR**
|
||||||
|
|
||||||
|
```objc
|
||||||
|
|
||||||
|
UIActionSheet *sheet = [UIActionSheet presentOnView:self.view
|
||||||
|
withTitle:@"John - 555-1212"
|
||||||
|
cancelButton:@"Dismiss"
|
||||||
|
destructiveButton:@"Delete Contact"
|
||||||
|
otherButtons:@[@"Call Contact",@"Message Contact"]
|
||||||
|
onCancel:^(UIActionSheet *actionSheet) {
|
||||||
|
NSLog(@"Touched cancel button");
|
||||||
|
}
|
||||||
|
onDestructive:^(UIActionSheet *actionSheet) {
|
||||||
|
NSLog(@"Touched destructive button");
|
||||||
|
}
|
||||||
|
onClickedButton:^(UIActionSheet *actionSheet, NSUInteger index) {
|
||||||
|
NSLog(@"Selected button at index %d", index);
|
||||||
|
}];
|
||||||
|
```
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
The class will return the UIActionSheet object which you can manally dismiss if needed.
|
||||||
|
|
||||||
|
LICENSE
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
Copyright (C) 2013 Developed by Shai Mishali
|
||||||
|
|
||||||
|
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.
|
||||||
57
Example/Pods/UIActionSheet-Blocks/UIActionSheet+Blocks.h
generated
Normal file
57
Example/Pods/UIActionSheet-Blocks/UIActionSheet+Blocks.h
generated
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
//
|
||||||
|
// UIActionSheet+Blocks.h
|
||||||
|
//
|
||||||
|
// Created by Shai Mishali on 9/26/13.
|
||||||
|
// Copyright (c) 2013 Shai Mishali. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
UIActionSheet+Blocks is a simple Block implementation for UIActionSheet created by Shai Mishali.
|
||||||
|
*/
|
||||||
|
|
||||||
|
@interface UIActionSheet (Blocks) <UIActionSheetDelegate>
|
||||||
|
|
||||||
|
/**
|
||||||
|
Present a UIActionSheet on a specific view
|
||||||
|
|
||||||
|
Note: On this shorthand version the cancel button always displayed "Cancel" as the text. If you require a custom cancel text, use the longer method below.
|
||||||
|
|
||||||
|
@param view The view on which the UIActionSheet will be displayed
|
||||||
|
@param title The title of the UIActionSheet
|
||||||
|
@param otherStrings An array containing strings of other buttons
|
||||||
|
@param onCancel Cancel block - Called when the user pressed the cancel button, or the UIActionSheet has been manually dismissed
|
||||||
|
@param onClickedButton Clicked button at index block - Called when the user presses any button other then Cancel
|
||||||
|
|
||||||
|
@return The generated UIActionSheet
|
||||||
|
*/
|
||||||
|
+(UIActionSheet *)presentOnView: (UIView *)view
|
||||||
|
withTitle: (NSString *)title
|
||||||
|
otherButtons: (NSArray *)otherStrings
|
||||||
|
onCancel: (void (^)(UIActionSheet *))cancelBlock
|
||||||
|
onClickedButton: (void (^)(UIActionSheet *, NSUInteger))clickBlock;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Present a UIActionSheet on a specific view
|
||||||
|
|
||||||
|
@param view The view on which the UIActionSheet will be displayed
|
||||||
|
@param title The title of the UIActionSheet
|
||||||
|
@param cancelString The string shown on the Cancel button
|
||||||
|
@param destructiveString The string shown on the Destructive button
|
||||||
|
@param otherStrings An array containing strings of other buttons
|
||||||
|
@param onCancel Cancel block - Called when the user pressed the cancel button, or the UIActionSheet has been manually dismissed
|
||||||
|
@param onDestructive Destructive block - Called when the user presses the destructive button
|
||||||
|
@param onClickedButton Clicked button at index block - Called when the user presses any button other then Cancel/Destructive
|
||||||
|
|
||||||
|
@return The generated UIActionSheet
|
||||||
|
*/
|
||||||
|
+(UIActionSheet *)presentOnView: (UIView *)view
|
||||||
|
withTitle: (NSString *)title
|
||||||
|
cancelButton: (NSString *)cancelString
|
||||||
|
destructiveButton: (NSString *)destructiveString
|
||||||
|
otherButtons: (NSArray *)otherStrings
|
||||||
|
onCancel: (void (^)(UIActionSheet *))cancelBlock
|
||||||
|
onDestructive: (void (^)(UIActionSheet *))destroyBlock
|
||||||
|
onClickedButton: (void (^)(UIActionSheet *, NSUInteger))clickBlock;
|
||||||
|
@end
|
||||||
77
Example/Pods/UIActionSheet-Blocks/UIActionSheet+Blocks.m
generated
Normal file
77
Example/Pods/UIActionSheet-Blocks/UIActionSheet+Blocks.m
generated
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
//
|
||||||
|
// UIActionSheet+Blocks.m
|
||||||
|
//
|
||||||
|
// Created by Shai Mishali on 9/26/13.
|
||||||
|
// Copyright (c) 2013 Shai Mishali. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "UIActionSheet+Blocks.h"
|
||||||
|
|
||||||
|
static void (^__clickedBlock)(UIActionSheet *sheet, NSUInteger index);
|
||||||
|
static void (^__cancelBlock)(UIActionSheet *sheet);
|
||||||
|
static void (^__destroyBlock)(UIActionSheet *sheet);
|
||||||
|
|
||||||
|
@implementation UIActionSheet (Blocks)
|
||||||
|
|
||||||
|
+(UIActionSheet *)presentOnView:(UIView *)view
|
||||||
|
withTitle:(NSString *)title
|
||||||
|
otherButtons:(NSArray *)otherStrings
|
||||||
|
onCancel:(void (^)(UIActionSheet *))cancelBlock
|
||||||
|
onClickedButton:(void (^)(UIActionSheet *, NSUInteger))clickBlock{
|
||||||
|
|
||||||
|
return [self presentOnView:view
|
||||||
|
withTitle:title
|
||||||
|
cancelButton:NSLocalizedString(@"Cancel", @"")
|
||||||
|
destructiveButton:nil
|
||||||
|
otherButtons:otherStrings
|
||||||
|
onCancel:cancelBlock
|
||||||
|
onDestructive:nil
|
||||||
|
onClickedButton:clickBlock];
|
||||||
|
}
|
||||||
|
|
||||||
|
+(UIActionSheet *)presentOnView: (UIView *)view
|
||||||
|
withTitle: (NSString *)title
|
||||||
|
cancelButton: (NSString *)cancelString
|
||||||
|
destructiveButton: (NSString *)destructiveString
|
||||||
|
otherButtons: (NSArray *)otherStrings
|
||||||
|
onCancel: (void (^)(UIActionSheet *))cancelBlock
|
||||||
|
onDestructive: (void (^)(UIActionSheet *))destroyBlock
|
||||||
|
onClickedButton: (void (^)(UIActionSheet *, NSUInteger))clickBlock{
|
||||||
|
__cancelBlock = cancelBlock;
|
||||||
|
__clickedBlock = clickBlock;
|
||||||
|
__destroyBlock = destroyBlock;
|
||||||
|
|
||||||
|
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:title
|
||||||
|
delegate:(id) [self class]
|
||||||
|
cancelButtonTitle:nil
|
||||||
|
destructiveButtonTitle:destructiveString
|
||||||
|
otherButtonTitles:nil];
|
||||||
|
|
||||||
|
for(NSString *other in otherStrings)
|
||||||
|
[sheet addButtonWithTitle: other];
|
||||||
|
|
||||||
|
if (cancelString) {
|
||||||
|
[sheet setCancelButtonIndex:[sheet addButtonWithTitle:cancelString]];
|
||||||
|
}
|
||||||
|
|
||||||
|
[sheet showInView: view];
|
||||||
|
|
||||||
|
return sheet;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma mark - Private Static delegate
|
||||||
|
+(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex{
|
||||||
|
if([actionSheet destructiveButtonIndex] == buttonIndex && __destroyBlock)
|
||||||
|
__destroyBlock(actionSheet);
|
||||||
|
else if([actionSheet cancelButtonIndex] == buttonIndex && __cancelBlock)
|
||||||
|
__cancelBlock(actionSheet);
|
||||||
|
else if(__clickedBlock)
|
||||||
|
__clickedBlock(actionSheet, buttonIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
+(void)actionSheetCancel:(UIActionSheet *)actionSheet{
|
||||||
|
if(__cancelBlock)
|
||||||
|
__cancelBlock(actionSheet);
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// AlertViewActionDispatcher.h
|
||||||
|
// AlertViewExamples
|
||||||
|
//
|
||||||
|
// Created by Mango on 2015. 3. 18..
|
||||||
|
// Copyright (c) 2015년 Mangofever. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
|
||||||
|
#define ActionByCancel -1
|
||||||
|
|
||||||
|
typedef void (^UIAlertActionBlock) (UIAlertView *alertView, NSInteger buttonIndex);
|
||||||
|
|
||||||
|
@interface AlertViewActionDispatcher : NSObject
|
||||||
|
|
||||||
|
- (void)addActionBlock:(UIAlertActionBlock)actionBlock withButtonIndex:(NSInteger)buttonIndex;
|
||||||
|
- (void)addCancelActionBlock:(UIAlertActionBlock)actionBlock;
|
||||||
|
|
||||||
|
@end
|
||||||
@ -0,0 +1,59 @@
|
|||||||
|
//
|
||||||
|
// AlertViewActionDispatcher.m
|
||||||
|
// AlertViewExamples
|
||||||
|
//
|
||||||
|
// Created by Mango on 2015. 3. 18..
|
||||||
|
// Copyright (c) 2015년 Mangofever. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "AlertViewActionDispatcher.h"
|
||||||
|
|
||||||
|
@interface AlertViewActionDispatcher ()
|
||||||
|
|
||||||
|
@property (nonatomic, strong) NSMutableDictionary *actionBlockDictionary;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation AlertViewActionDispatcher
|
||||||
|
|
||||||
|
- (id)init {
|
||||||
|
self = [super init];
|
||||||
|
if (self) {
|
||||||
|
self.actionBlockDictionary = [NSMutableDictionary dictionary];
|
||||||
|
}
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)addActionBlock:(UIAlertActionBlock)actionBlock withButtonIndex:(NSInteger)buttonIndex {
|
||||||
|
if (actionBlock) {
|
||||||
|
[self.actionBlockDictionary setObject:actionBlock forKey:@(buttonIndex)];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)addCancelActionBlock:(UIAlertActionBlock)actionBlock {
|
||||||
|
if (actionBlock) {
|
||||||
|
[self.actionBlockDictionary setObject:actionBlock forKey:@(ActionByCancel)];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- (BOOL)excuteActionBlockForAlertView:(UIAlertView *)alertView buttonIndex:(NSInteger)buttonIndex {
|
||||||
|
UIAlertActionBlock actionBlock = [self.actionBlockDictionary objectForKey:@(buttonIndex)];
|
||||||
|
if (actionBlock) {
|
||||||
|
actionBlock(alertView, buttonIndex);
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pragma mark - UIAlertViewDelegate
|
||||||
|
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
|
||||||
|
[self excuteActionBlockForAlertView:alertView buttonIndex:buttonIndex];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)alertViewCancel:(UIAlertView *)alertView {
|
||||||
|
if ([self excuteActionBlockForAlertView:alertView buttonIndex:ActionByCancel] == NO) {
|
||||||
|
[self excuteActionBlockForAlertView:alertView buttonIndex:alertView.cancelButtonIndex];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@end
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
//
|
||||||
|
// UIAlertView+BlockExtension.h
|
||||||
|
// AlertViewExamples
|
||||||
|
//
|
||||||
|
// Created by Mango on 2015. 3. 18..
|
||||||
|
// Copyright (c) 2015년 Mangofever. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import <UIKit/UIKit.h>
|
||||||
|
#import "AlertViewActionDispatcher.h"
|
||||||
|
|
||||||
|
@interface UIAlertView (BlockExtension)
|
||||||
|
|
||||||
|
@property (strong, nonatomic) AlertViewActionDispatcher *actionDispatcher;
|
||||||
|
|
||||||
|
+ (UIAlertView *)alertViewWithTitle:(NSString *)title message:(NSString *)message;
|
||||||
|
|
||||||
|
- (void)addButtonWithTitle:(NSString *)title actionBlock:(UIAlertActionBlock)actionBlock;
|
||||||
|
- (void)addCancelButtonWithTitle:(NSString *)title actionBlock:(UIAlertActionBlock)actionBlock;
|
||||||
|
- (void)addCancelActionBlock:(UIAlertActionBlock)actionBlock;
|
||||||
|
|
||||||
|
@end
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
//
|
||||||
|
// UIAlertView+BlockExtension.m
|
||||||
|
// AlertViewExamples
|
||||||
|
//
|
||||||
|
// Created by Mango on 2015. 3. 18..
|
||||||
|
// Copyright (c) 2015년 Mangofever. All rights reserved.
|
||||||
|
//
|
||||||
|
|
||||||
|
#import "UIAlertView+BlockExtension.h"
|
||||||
|
#import <objc/runtime.h>
|
||||||
|
|
||||||
|
@implementation UIAlertView (BlockExtension)
|
||||||
|
|
||||||
|
@dynamic actionDispatcher;
|
||||||
|
|
||||||
|
+ (UIAlertView *)alertViewWithTitle:(NSString *)title message:(NSString *)message {
|
||||||
|
|
||||||
|
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:message delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
|
||||||
|
alertView.actionDispatcher = [[AlertViewActionDispatcher alloc] init];
|
||||||
|
|
||||||
|
return alertView;
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)addButtonWithTitle:(NSString *)title actionBlock:(UIAlertActionBlock)actionBlock {
|
||||||
|
NSInteger buttonIndex = [self addButtonWithTitle:title];
|
||||||
|
[self.actionDispatcher addActionBlock:actionBlock withButtonIndex:buttonIndex];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)addCancelButtonWithTitle:(NSString *)title actionBlock:(UIAlertActionBlock)actionBlock {
|
||||||
|
NSInteger buttonIndex = [self addButtonWithTitle:title];
|
||||||
|
self.cancelButtonIndex = buttonIndex;
|
||||||
|
[self.actionDispatcher addActionBlock:actionBlock withButtonIndex:buttonIndex];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)addCancelActionBlock:(UIAlertActionBlock)actionBlock {
|
||||||
|
[self.actionDispatcher addCancelActionBlock:actionBlock];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
- (void)setActionDispatcher:(AlertViewActionDispatcher *)actionDispatcher {
|
||||||
|
self.delegate = actionDispatcher;
|
||||||
|
objc_setAssociatedObject(self, @selector(actionDispatcher), actionDispatcher, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||||
|
}
|
||||||
|
|
||||||
|
- (AlertViewActionDispatcher *)actionDispatcher {
|
||||||
|
return objc_getAssociatedObject(self, @selector(actionDispatcher));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@end
|
||||||
21
Example/Pods/UIAlertViewBlockExtension/LICENSE.txt
generated
Normal file
21
Example/Pods/UIAlertViewBlockExtension/LICENSE.txt
generated
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2015 mangofever
|
||||||
|
|
||||||
|
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.
|
||||||
32
Example/Pods/UIAlertViewBlockExtension/README.md
generated
Normal file
32
Example/Pods/UIAlertViewBlockExtension/README.md
generated
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# UIAlertViewBlockExtension
|
||||||
|
UIAlertView category for block expression
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
### Using cocoapods
|
||||||
|
<code>
|
||||||
|
pod 'UIAlertViewBlockExtension'
|
||||||
|
</code>
|
||||||
|
|
||||||
|
## Features
|
||||||
|
- Block expression can be used for handling UIAlertView's clicks.
|
||||||
|
- Similar with UIAlertController in iOS 8.0
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
```
|
||||||
|
UIAlertView *alertView = [UIAlertView alertViewWithTitle:@"title" message:@"message"];
|
||||||
|
|
||||||
|
[alertView addButtonWithTitle:@"OK" actionBlock:^(UIAlertView *alertView, NSInteger buttonIndex) {
|
||||||
|
NSLog(@"clicked button index : %lu", buttonIndex);
|
||||||
|
NSLog(@"cancel button index : %lu", alertView.cancelButtonIndex);
|
||||||
|
}];
|
||||||
|
|
||||||
|
[alertView addCancelButtonWithTitle:@"Cancel" actionBlock:^(UIAlertView *alertView, NSInteger buttonIndex) {
|
||||||
|
NSLog(@"clicked button index : %lu", buttonIndex);
|
||||||
|
NSLog(@"cancel button index : %lu", alertView.cancelButtonIndex);
|
||||||
|
}];
|
||||||
|
|
||||||
|
[alertView show];
|
||||||
|
```
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
- iOS version 4.0 or later
|
||||||
@ -11,6 +11,7 @@
|
|||||||
#import "TabBarItem.h"
|
#import "TabBarItem.h"
|
||||||
#import "NSString+HexColor.h"
|
#import "NSString+HexColor.h"
|
||||||
#import "SharedLocationManager.h"
|
#import "SharedLocationManager.h"
|
||||||
|
#import "UIAlertView+BlockExtension.h"
|
||||||
|
|
||||||
@interface TabBarPickerSubItemsView()
|
@interface TabBarPickerSubItemsView()
|
||||||
|
|
||||||
@ -153,11 +154,18 @@
|
|||||||
|
|
||||||
- (void)openSettings
|
- (void)openSettings
|
||||||
{
|
{
|
||||||
|
UIAlertView *alert = [UIAlertView alertViewWithTitle:NSLocalizedString(@"Settings", @"") message:NSLocalizedString(@"Open Settings?", @"")];
|
||||||
|
|
||||||
|
[alert addButtonWithTitle:NSLocalizedString(@"OK", @"") actionBlock:^(UIAlertView *alertView, NSInteger buttonIndex) {
|
||||||
BOOL canOpenSettings = (&UIApplicationOpenSettingsURLString != NULL);
|
BOOL canOpenSettings = (&UIApplicationOpenSettingsURLString != NULL);
|
||||||
if (canOpenSettings) {
|
if (canOpenSettings) {
|
||||||
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
NSURL *url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
|
||||||
[[UIApplication sharedApplication] openURL:url];
|
[[UIApplication sharedApplication] openURL:url];
|
||||||
}
|
}
|
||||||
|
}];
|
||||||
|
[alert addCancelButtonWithTitle:NSLocalizedString(@"CANCEL", @"") actionBlock:nil];
|
||||||
|
[alert show];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)changeSwitch:(UISwitch*)sender{
|
- (void)changeSwitch:(UISwitch*)sender{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user