2011-10-11 28 views
0

我剛剛設法創建我的settings.bundle並設置了不同設置的選擇。但是,當我運行我的應用程序並通過InAppSettingsKit查看設置時,多值選項不會顯示。我看到標題,我可以選擇它,然後當它顯示選項時,它只顯示n個空單元(除了勾號)。InAppSettingsKit多值不顯示選項

奇怪的是,如果我進入Apple Settings應用程序並檢查多值設置,它們都會按預期顯示。有誰知道發生了什麼事?

這是我用我的.h文件中的代碼:

#import <UIKit/UIKit.h> 
#import "IASKAppSettingsViewController.h" 

@interface myViewController : UIViewController <IASKSettingsDelegate, UITextViewDelegate> 
{ 
    IASKAppSettingsViewController *appSettingsViewController; 
} 

而在.m文件我有以下幾點:

- (IBAction)optionsButtonSelected:(id)sender 
{ 
    appSettingsViewController = [[[IASKAppSettingsViewController alloc] initWithNibName:@"IASKAppSettingsView" bundle:nil] autorelease]; 
    appSettingsViewController.delegate = self; 
    appSettingsViewController.showDoneButton = YES; 
    UINavigationController *aNavController = [[[UINavigationController alloc] initWithRootViewController:appSettingsViewController] autorelease]; 
    [self presentModalViewController:aNavController animated:YES]; 
} 

以下是部分截圖我的設定束的(示出在有問題的多值選項):

enter image description here

這裏是顯示當我點擊樣式所顯示的應用程序中設置部分截圖:

enter image description here

+0

你可以發佈(最小的測試用例)你的設置包的內容嗎? –

+0

@OrtwinGentz我添加了一些截圖以提供更多信息。 –

+0

你有本地化文件嗎?我注意到你在plist中寫了「Display Style」,但在屏幕上顯示了「Style」。 –

回答

1

我設法通過重置iPhone模擬器來解決這個問題。由於某種原因,似乎它在一些新老plist設置之間變得混亂。

0

對不起,它不會讓我投票。我還通過退出模擬器並再次運行應用程序來解決類似的問題(也嘗試刪除應用程序?)。