Skip to content

corerd/CRDScrollSwitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRDScrollSwitch for iOS

The CRDScrollSwitch inherits from UIScrollView and is a drop in replacement for UISwitch that allows the user to customize its appearance.

user input clear

Extra features

  • Custom text label for ON state.
  • Custom text label for OFF state.
  • Custom image representing the switch’s thumb knob and ON/OFF areas.

Usage

To use it, add the files in the Classes folder to your project.

In this Wiki page it is dealt how to add a CRDScrollSwitch object using Interface Builder.

In the Gimp folder you can find the GIMP image file from which the default CRDScrollSwitch image has been converted.

The CRDScrollSwitch class is deployed together a demo iPhone app to show various use case scenarios. It has been developed as an Xcode 4.6.2 project targeting iOS 6.1.

CREDITS

[UISwitch - change from on/off to yes/no] ( http://stackoverflow.com/a/10437261 )

[Creating a Custom UISwitch] ( http://www.raywenderlich.com/23424/photoshop-for-developers-creating-a-custom-uiswitch )

The MIT License

Copyright (c) 2013 Corrado Ubezio

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 NON-INFRINGEMENT. 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.

About

iOS Cocoa Touch custom control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published