I believe this post has a better solution : iPhone UIButton with UISwitch functionality
UIButton has toggling built in. There is a selected property that you can set and change the skins based on the state.
More Related Contents:
- Error : The service is invalid
- Adding devices to team provisioning profile
- Unbalanced calls to begin/end appearance transitions for
- StoreKit In App Purchase invalid product identifiers [duplicate]
- Adding Unit Tests to an already existing project?
- Deactivate UIScrollView decelerating
- UIImageView Touch Event
- How to stop UITextView from scrolling up when entering it
- How do I programmatically zoom a UIScrollView?
- How to check the orientation of device programmatically in iPhone? [duplicate]
- Where are the UIKit Framework implementation files located?
- Why am I crashing after MKMapView is freed if I’m no longer using it?
- Justified Alignment in UITextView – iPhone
- Get launch orientation of iPad app
- Using AFNetworking and HTTP Basic Authentication
- iphone – How do I add videos to iPad simulator?
- Determine coordinates of a UITableViewCell while scrolling
- iOS get Configuration Profiles that are installed
- How to get click event from a button added over MKAnnotationView
- iPhone UIWebView width does not fit after zooming operation + UIInterfaceOrientation change
- UITextField text disappears on every other keystroke
- Fuzzy Date algorithm in Objective-C
- How to get UIView frame origin and size while animation
- iOS print without allowing UIPrintInteractionController to appear
- Dynamically change launch image in iOS
- Turn off display in iPhone OS (iOS)
- iOS 5: Curious about UIAppearance
- What are the limitations of NSUserDefaults?
- Core Data’s NSPrivateQueueConcurrencyType and sharing objects between threads
- Can’t find momd file: Core Data problems