在 iOS SDK 7
中,我在以这种方式加载一些数据时显示了一条消息:
myAlertView = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
[myAlertView setMessage:@"long text...."];
alertView.frame = CGRectMake(0, 0, 100.0, 70.0);
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(230, 150, 90, 90)];
[indicator startAnimating];
[myAlertView indicator ];
[myAlertView show];
[indicator release];
[myAlertView release];
所有消息都正确显示了所有文本。在 SDK 8(测试版)
中,它只显示前两行。我在盒子里有空间放它,但文字就像被剪掉了一样。我尝试更改 Frame
大小:
CGRectMake(130, 110, 50, 50)
但没有任何帮助。
关于如何为 iOS 8
修复它有什么想法吗?
最佳答案
它在 ios 8 中也能正常工作。@rckoenes 是对的,请使用 ios8 GM。
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:nil message:nil delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
[myAlertView setMessage:@"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. End"];
[myAlertView show];
看这里
关于ios - UIAlertView 中的全文在 iOS 8 中未正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25867635/