【问题标题】:Why is this UIAlertView's Position not changing?为什么这个 UIAlertView 的位置没有改变?
【发布时间】:2014-12-06 10:45:46
【问题描述】:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Blah"
                                                           message:nil
                                                          delegate:nil
                                                 cancelButtonTitle:@"Cancel"
                                                 otherButtonTitles:@"Enter", nil];
alert.alertViewStyle = UIAlertViewStyleSecureTextInput;
[alert textFieldAtIndex:0].delegate = self;
alert.delegate = self;
[alert show];

alert.frame = CGRectMake(0,0,200,100);

我也尝试过添加 AffineTransform。但它只是没有改变。有人可以帮我吗?

【问题讨论】:

  • 对此有任何消息吗?同样的问题。

标签: ios uialertview cgrect uialertviewdelegate


【解决方案1】:

原来这只是 Apple 试图让每个人都转向 UIAlertControllers。 UIAlertController 自动移动。所以这将是我对这里的任何人的建议。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-17
    • 1970-01-01
    • 1970-01-01
    • 2013-03-12
    • 1970-01-01
    相关资源
    最近更新 更多