English 中文(简体)
另一小段
原标题:addsubview after another subview

我知道这番话,但在这里是:

i 装上lash 我的意见:关于观点:

[self.view addSubview:splashView];    

UIViewAnimationOptions options = UIViewAnimationOptionCurveLinear;
[UIView animateWithDuration:0.5 delay:3.0 options:options animations:^{            
    splashView.alpha = 0.0f;
    splashView.frame = CGRectMake(512,384,-10,-10);
}

completion:^(BOOL finished){                          
    [splashView removeFromSuperview]; 
}];

这里没有特别的法典。

however, when i try to load the same view as an action through a button NOTHING happens:

-(IBAction)showSplash:(id)sender {
    [self.view addSubview:splashView];

    UIViewAnimationOptions options = UIViewAnimationOptionCurveLinear;
    [UIView animateWithDuration:0.5 delay:3.0 options:options animations:^{
        splashView.alpha = 0.0f;
        splashView.frame = CGRectMake(512,384,-10,-10);
    }

    completion:^(BOOL finished){ 
        [splashView removeFromSuperview]; 
    }];
}

为什么发生这种情况?

如果DO NOT装上电离层的闪电,然后使用 but子(行动),它就会起作用!

这是正常行为吗?

最佳回答

在穿透闪电之前重新确定甲型数值。

splashView.alpha = 1.0f;
问题回答

暂无回答




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签