2014-11-17 44 views
0

我正在爲我的項目使用XCode 5.1.1。在iOS 7.x中工作正常的應用程序。但是,在iOS 8上,UIActionSheet按鈕不顯示任何文本。UIActionSheet按鈕文本在iOS 8.x上不顯示

下面是代碼:

addAttachmentsOptions = [[UIActionSheet alloc] initWithTitle:nil 
                      delegate: self 
                    cancelButtonTitle: nil 
                  destructiveButtonTitle: nil 
                    otherButtonTitles: NSLocalizedString(@"ID_TAKE_PHOTO_LABEL", nil), 
               NSLocalizedString(@"ID_CHOOSE_PHOTO_LABEL", nil), nil]; 

我知道的iOS 8不支持UIActionSheet,但我希望在已經發布的應用程序的向後兼容性。

回答