Ios InAppSettings套件IASKButtonSpecifier不工作
救命啊!我花了两天的时间试着让它工作起来。我将IASK与TableViewController和IASKapSettingsViewController集成为自定义类。我使用了示例应用程序,但使用了故事板并插入了ARC代码。 我还在.plist中使用IASK CustomSubviewController,它从一开始就可以正常工作。除了我添加到TableViewController的UI按钮外,其他按钮都不起作用。这是代码。谢谢你的提示。 在h中: 以m为单位: 这来自我的根~iphone.inApp.plist:Ios InAppSettings套件IASKButtonSpecifier不工作,ios,objective-c,inappsettingskit,Ios,Objective C,Inappsettingskit,救命啊!我花了两天的时间试着让它工作起来。我将IASK与TableViewController和IASKapSettingsViewController集成为自定义类。我使用了示例应用程序,但使用了故事板并插入了ARC代码。 我还在.plist中使用IASK CustomSubviewController,它从一开始就可以正常工作。除了我添加到TableViewController的UI按钮外,其他按钮都不起作用。这是代码。谢谢你的提示。 在h中: 以m为单位: 这来自我的根~iphone.in
<dict>
<key>Key</key>
<string>saveButton</string>
<key>Title</key>
<string>Save all settings</string>
<key>Type</key>
<string>IASKButtonSpecifier</string>
</dict>
你说它看起来很奇怪是什么意思?请发布截图。谢谢!正在工作的UI按钮是一个标准UI按钮,位于屏幕底部。我想要的是IASK按钮工作,它位于其他按钮和字段之间。不幸的是,我不能发布屏幕截图,但希望我能说清楚。不,我不明白问题出在哪里。请发布一个屏幕截图或示例项目。我找到了一个解决方法,但当我想更改根目录~iphone.inApp.plist中的某些内容时,该工具包遇到了另一个问题。我添加了一个新的textfield说明符,但更改没有反映在IASK settings视图中,只有settings.app发生了更改。我的包中只有这两个文件,Root.plist和Root~iphone.inApp.plist。这可能也是ButtonSpecifier不起作用的原因。我删除了我的应用程序好几次。IASK设置视图保持不变。
- (void)settingsViewController:(IASKAppSettingsViewController*)sender
buttonTappedForSpecifier:
(IASKSpecifier*)specifier {
if ([specifier.key isEqualToString:@"saveButton"]) {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Exit Settings"
message:@"Did you enter all settings?"
delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Ok", nil];
[alert show]
}
}
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
if (buttonIndex == 1) {
[[NSUserDefaults standardUserDefaults] synchronize];
exit(0);
}}
<dict>
<key>Key</key>
<string>saveButton</string>
<key>Title</key>
<string>Save all settings</string>
<key>Type</key>
<string>IASKButtonSpecifier</string>
</dict>