我刚刚设法创建了我的 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];
}
下面是我的设置包的一部分的屏幕截图(显示有问题的多值选项):
这是一个屏幕截图,显示了当我单击样式时应用内设置部分中显示的内容: