I think ActionSheet requires a cancel button.So you can add the cancel button title.
Another way is: Specify actionSheet’s cancelButtonIndex.
For example,in your case, you can add a “Cancel” in otherButtonTitles at index 4 and then specifiy
actionSheet.cancelButtonIndex = 4.
Related Contents:
- Aligning text and image on UIButton with imageEdgeInsets and titleEdgeInsets
- iOS 7 Navigation Bar text and arrow color
- How to fix UITableView separator on iOS 7? [duplicate]
- ‘Missing recommended icon file – The bundle does not contain an app icon for iPhone / iPod Touch of exactly ‘120×120′ pixels, in .png format’
- Navigation bar appear over the views with new iOS7 SDK
- What is the best way to remove all subviews from you self.view?
- Xcode 5 and iOS 7: Architecture and Valid architectures
- What properties can I set via an UIAppearance proxy?
- UIButton not showing highlight on tap in iOS7
- UIButton title alignment and multiline support
- How do I accept a self-signed SSL certificate using iOS 7’s NSURLSession and its family of delegate methods for development purposes?
- What exactly does bool parameter do in animateWithDuration:animations:completion:
- View got hidden below UINavigationBar iOS 7
- Black bars showing when running app on iOS 7 (4 inch retina display)
- How can I reset the NSUserDefaults data in the iPhone simulator?
- Inject system wide touch events on iOS7
- How do I draw a shadow under a UIView?
- How to detect iPhone 5 (widescreen devices)?
- Get push notification while App in foreground iOS
- Is it possible to disable floating headers in UITableView with UITableViewStylePlain?
- Display clearColor UIViewController over UIViewController
- Imitate Facebook hide/show expanding/contracting Navigation Bar
- Storyboard – refer to ViewController in AppDelegate
- How do I make UITableViewCell’s ImageView a fixed size even when the image is smaller
- UIImagePickerController error: Snapshotting a view that has not been rendered results in an empty snapshot in iOS 7
- How to write a BOOL predicate in Core Data?
- Can’t launch my app in Instruments: At least one target failed to launch
- Ignore certain exceptions when using Xcode’s All Exceptions breakpoint
- iOS: Using UIView’s ‘drawRect:’ vs. its layer’s delegate ‘drawLayer:inContext:’
- Dynamically setting layout on UICollectionView causes inexplicable contentOffset change
- Checking if a UIViewController is about to get Popped from a navigation stack?
- How to stop the Observer in NSNotification to called twice?
- calculating height of UITabBar
- Swift UIAlertController -> ActionSheet iPad iOS8 Crashes
- How to handle app URLs in a UIWebView?
- Determining codesigning identities from the command line?
- What is the difference between Objective-C automatic reference counting and garbage collection?
- iOS Keychain Security
- How do I turn the system volume overlay back on after using MPVolumeView?
- iPhone keyboard, Done button and resignFirstResponder
- How do I know when safe to ignore __cxa_throw on an All Exceptions breakpoint?
- How to check iOS app size before upload [duplicate]
- Best radio-button implementation for IOS
- Saving NSDictionary to NSUserDefaults
- iOS 6 shouldAutorotate: is NOT being called
- Best practices for iOS applications security
- iOS: Using device modifiers for loading xib files?
- iOS how to make slider stop at discrete points
- Could not find a storyboard named ‘MainStoryBoard’ in bundle NSBundle
- Developing for iOS on multiple computers, testing on a single device, advice?