I found the solution: need to add addition line
[button setImage:[UIImage imageNamed:@"pressed.png"] forState:UIControlStateSelected | UIControlStateHighlighted];
More Related Contents:
- How to get the RGB values for a pixel on an image on the iphone
- How to make one color transparent on a UIImage?
- Lazy load images in UITableViewCell
- iOS: Download image from url and save in device
- Way to make a UIButton continuously fire during a press-and-hold situation?
- Best radio-button implementation for IOS
- UIImagePickerController in Landscape
- How to send json data in the Http request using NSURLRequest
- iPhone viewWillAppear not firing
- Difference between [UIImage imageNamed…] and [UIImage imageWithData…]?
- Convert image to grayscale
- UIImage rounded corners
- Is it possible to change a UIButtons background color?
- How do I reset after a UIScrollView zoom?
- MKPinAnnotationView: Are there more than three colors available?
- Checkbox image toggle in UITableViewCell
- How to search MKMapView with UISearchBar?
- Should I use NSUserDefaults or a plist to store data?
- How do I enter RGB values into Interface Builder?
- Add an SQLite database to an iPhone app
- How to subclass UINavigationBar for a UINavigationController programmatically?
- How do I use UIPageControl to create multiple views?
- NSString to NSArray
- How to create subscript characters that’s not in Unicode in iOS
- How can I detect a double tap on a certain cell in UITableView?
- Retrieving current local time on iPhone?
- Core Data and Core Location
- Offset on UIWindow addSubview
- How to get UIMenuController work for a custom view?
- How to handle duplicate symbol error from 3rd party libraries?