小编dmc*_*all的帖子

升级后,XCode在归档时给出"包不包含Info.plist"错误

我在应用程序商店中有一个iOS 7应用程序,它有许多应用程序内购买.应用内购买只是我用Apple托管的新的.json数据结构.IAP用于完美提交,但是当我将我的机器从Mountain Lion升级到Yosemite时,我刚刚升级到XCode 6.1.现在每当我存档一个新的IAP包或重新存档上周正确提交的旧IAP包时,我得到:

"无法验证您的应用程序.该软件包不包含Info.plist".

当我单击目标(​​在Navigator窗格中)时,Build Settings | 包装展示:

  • Info.plist文件为"north_carolina.pittsburgh/ContentInfo.plist".(调试和释放子标题显示相同的信息).
  • 产品名称为"north_carolina.pittsburgh".

ContentInfo.plist文件位于目标的Supporting Files文件夹中(在Navigator窗格中).在它里面我有钥匙

  • ContentVersion(值设置为2.0)
  • IAPProductIdentifier
  • 捆绑版本字符串,short(值设置为2.0)

最后,在导航器的Products文件夹中,我在红色目标图标旁边有north_carolina.pittsburgh,并且单词为红色.

如何才能使此存档正确验证?

iphone xcode ios

13
推荐指数
2
解决办法
5815
查看次数

如何检索UISwitch的UITableView行号?

我已经尝试过这里发布的几种方法,但是我无法让我的表充满交换机来返回已更改交换机的单元格的索引值.我正在以编程方式创建包含表的视图(无xib).

TableSandboxAppDelegate.m我实例化视图控制器didFinishLaunchingWithOptions::

...
TableSandboxViewController *sandboxViewController = [[TableSandboxViewController alloc]
    init];
[[self window] setRootViewController:sandboxViewController];
...
Run Code Online (Sandbox Code Playgroud)

TableViewController.h文件读取:

@interface TableSandboxViewController : UITableViewController
{
   NSMutableArray *_questionOrder;
   NSMutableArray *switchStates;
}
@end
Run Code Online (Sandbox Code Playgroud)

TableViewController.m cellForRowAtIndexPath:读取:

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MainCell"];

UISwitch *theSwitch = nil;

if (cell == nil) {
    cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
        reuseIdentifier:@"MainCell"];

    theSwitch = [[UISwitch alloc] initWithFrame:CGRectZero];
    theSwitch.tag = 100;
    [theSwitch addTarget:self action:@selector(switchChanged:)   
        forControlEvents:UIControlEventValueChanged];
    [cell.contentView addSubview:theSwitch];

} else {
    theSwitch = [cell.contentView viewWithTag:100];
}

if ([[switchStates objectAtIndex:indexPath.row] isEqualToString:@"ON"]) {
    theSwitch.on …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c uitableview uiswitch ios

5
推荐指数
2
解决办法
2291
查看次数

标签 统计

ios ×2

iphone ×2

objective-c ×1

uiswitch ×1

uitableview ×1

xcode ×1