小编hve*_*ind的帖子

为什么我可以直接在我的设备上安装应用商店分发版本?

我的印象是,无法直接在测试设备上安装应用商店分发版本(无需通过实际的App Store).我发现Apple对以下注释有多处引用(虽然我在iOS App Distribution Guide的当前版本中找不到该注释本身):

"App Store配置文件不允许在Apple设备上安装分发构建的应用程序.要在设备上安装分发应用程序,您必须创建Ad Hoc配置文件."

现在考虑以下内容:我有一个Ad Hoc Distribution配置文件和App Store Distribution配置文件.ad hoc配置文件包含已配置设备的列表,而应用商店配置文件则不包含.我的(无jailbrake)设备包含在ad hoc配置文件中的配置设备中.我的构建是使用应用商店配置文件签署的.生成的.ipa文件已提交给App Store(并已批准 - 但尚未公开发布).当我查看.ipa文件的包内容时,我看到embedded.mobileprovision确实是应用商店配置文件(没有配置的设备列表).当我将此配置文件拖到我的Xcode Organizer时,由于设备未包含在配置文件中(因为预期),因此出现无法安装配置文件的错误.但是,当我将.ipa文件拖到我的Xcode Organizer时,该应用程序将安装在设备上(之后可以在设备上打开).在确保设备上没有安装相同应用程序的其他副本后,我尝试了这一点.当我使用未包含在ad hoc配置文件的配置设备中的其他设备时,同样的事情不起作用(即使.ipa包含没有配置设备列表的应用商店配置文件).

有没有人对此有可能的解释?似乎以某种方式,使用应用商店配置文件签名的构建仍然可以安装在相应的(相同的应用程序标识符?相同的团队标识符?)ad hoc配置文件中包含的设备上.但如果情况确实如此,那么制作单独的临时版本有什么意义呢?

xcode app-store ad-hoc-distribution ios provisioning-profile

14
推荐指数
1
解决办法
1万
查看次数

UITableViewController在iOS7中删除行后忽略点击

请考虑以下简单明了UITableViewController:当您点击一行时,它会记录所选行,当您滑动和删除时,它会删除模型中的项目并重新加载数据.

@interface DummyTableViewController : UITableViewController

@property (nonatomic, strong) NSMutableArray *items;

@end

@implementation DummyTableViewController

- (instancetype)initWithStyle:(UITableViewStyle)style
{
    self = [super initWithStyle:style];
    if (self)
    {
        _items = [ @[ @"A", @"B", @"C", @"D", @"E" ] mutableCopy];
    }
    return self;
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [self.items count];
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:nil];
    cell.textLabel.text = self.items[indexPath.row];
    return cell;
}

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle …
Run Code Online (Sandbox Code Playgroud)

cocoa-touch uitableview ios ios7

3
推荐指数
1
解决办法
1863
查看次数