2014-09-10 45 views
0

爲什麼我actionSheet看起來像這樣的iOS 8 ActionSheet顏色

enter image description here

我建設我的代碼的Xcode 4.5.1 build目標6.1。然後,當我在運行iOS 8 beta的iPad中構建它時,操作表看起來像這樣。在這個問題上可以有任何幫助。 下面是根據本https://developer.apple.com/library/ios/documentation/Uikit/reference/UIActionSheet_Class/index.html線程 UIActionSheet已經過時代碼

self.actionSheet = [[UIActionSheet alloc] init]; 
    [self.actionSheet setDelegate:self]; 
    [self.actionSheet addButtonWithTitle:@"Button1"]; 
    [self.actionSheet addButtonWithTitle:@"Button 2"]; 
    [self.actionSheet showFromBarButtonItem:actionButton animated:YES]; 

回答

0

,你應該使用UIAlertController而不是UIActionSheet。 謝謝。