小编Dyl*_*and的帖子

iOS 8 - 无法安装企业应用程序

我们公司有一个应用程序,可以使用Enterprise Distribution通过网站下载.

企业分销网站

在iOS 8 Beta 5中,点击下载链接会显示预期的弹出窗口"(网站)想要安装(应用程序名称)".在该对话框上点击"安装"会导致应用程序卡住"等待......"

应用卡住等待

直到它最终表明:"目前无法下载无法下载应用程序(应用程序名称)."

无法下载应用程序

安装使用iOS 7按预期工作.

在iOS 8下从Xcode运行应用程序.

我们如何支持iOS 8企业分发?

也许需要对Manifest文件进行更改?当我尝试在Xcode 6 Beta 7中构建应用程序时,Enterprise Archival进程没有提示我制作清单文件......

iphone enterprise ios

63
推荐指数
4
解决办法
6万
查看次数

Shadow UIview和clipsToBounds

我想将阴影设置为我的容器UIView.我使用此代码来实现:

- (id)initWithCoder:(NSCoder*)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {

        //-> drop shadow
        [self.layer setShadowColor:[UIColor blackColor].CGColor];
        [self.layer setShadowOpacity:0.6];
        [self.layer setShadowRadius:2.0];
        [self.layer setShadowOffset:CGSizeMake(2.0, 2.0)];
    }

    return self;
}
Run Code Online (Sandbox Code Playgroud)

这很好用.但是,当我_containerView.clipsToBounds = YES;在这个容器UIView上使用时,我看不到我的影子.为什么?

objective-c uikit uiview ios

4
推荐指数
2
解决办法
8270
查看次数

dismissViewControllerAnimated仅在iOS 7.1中导致EXC_BAD_ACCESS

ViewControllerAViewControllerB使用模态segue 打开.

ViewControllerA:

- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
    // ModalSegue is defined in the storyboard to point to ViewControllerB
    [self performSegueWithIdentifier:@"ModalSegue" sender:self];
}
Run Code Online (Sandbox Code Playgroud)

ViewControllerB:

- (IBAction)cancelButtonTapped:(id)sender
{
    [self dismissViewControllerAnimated:YES completion:nil]; // Causes crash
}
Run Code Online (Sandbox Code Playgroud)

在iOS 7.1中,这会导致EXC_BAD_ACCESS崩溃.如果Zombie Objects已启用,则抛出异常:

*** -[ViewControllerB respondsToSelector:]: message sent to deallocated instance 0x12ed7e170

在iOS 7.0中,这可以按预期工作.

有任何想法吗?

编辑:按照LeoNatan的要求,这里的的堆栈跟踪dealloc的方法ViewControllerB:

堆栈跟踪

objective-c ios ios7.1

0
推荐指数
1
解决办法
3297
查看次数

标签 统计

ios ×3

objective-c ×2

enterprise ×1

ios7.1 ×1

iphone ×1

uikit ×1

uiview ×1