0

我刚刚设法创建了我的 settings.bundle 并设置了一系列不同的设置。但是,当我运行我的应用程序并通过 InAppSettingsKit 查看设置时,不会显示多值选项。我看到标题,我可以选择它,然后当它应该显示选项时,它只显示 n 个空单元格(勾号除外)。

奇怪的是,如果我进入 Apple 设置应用程序并检查多值设置,它们都会按预期显示。有谁知道发生了什么?

这是我在 .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];
}

下面是我的设置包的一部分的屏幕截图(显示有问题的多值选项):

在此处输入图像描述

这是一个屏幕截图,显示了当我单击样式时应用内设置部分中显示的内容:

在此处输入图像描述

4

2 回答 2

1

我设法通过重置 iPhone 模拟器解决了这个问题。由于某种原因,它似乎在一些新旧 plist 设置之间感到困惑。

于 2011-10-13T17:20:11.593 回答
0

抱歉,它不允许我投票。我还通过退出模拟器并再次运行应用程序来解决类似的问题(也尝试删除应用程序?)。

于 2013-07-01T19:40:57.217 回答