Ios8 为什么在iOS 8中,默认情况下我的所有UIAlertView标签/文本都是粗体的

Ios8 为什么在iOS 8中,默认情况下我的所有UIAlertView标签/文本都是粗体的,ios8,uialertview,uialertviewdelegate,Ios8,Uialertview,Uialertviewdelegate,我搜索了这个,唯一的解决方案似乎是从UIAlertViewDelegate派生的。我不想这样做只是为了消除粗体文本 我用于弹出警报视图的代码如下: NSString* errPrompt = @"some text here, anything that will not show bold :)"; UIAlertView* alert = [[UIAlertView alloc] initWithTitle:title

我搜索了这个,唯一的解决方案似乎是从UIAlertViewDelegate派生的。我不想这样做只是为了消除粗体文本

我用于弹出警报视图的代码如下:

NSString* errPrompt = @"some text here, anything that will not show bold :)";
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:title
                                                message:errPrompt
                                                delegate:nil
                                       cancelButtonTitle:[self getUiText:"OK"]
                                       otherButtonTitles:nil];
[alert show];

这是iOS中的一个错误,会影响所有没有标题集的警报


有趣的是,大多数标准的iOS警报(如应用商店中的)都不会受到影响。

这是iOS中的一个错误,会影响所有没有标题集的警报


有趣的是,大多数标准的iOS警报(如应用商店中的)都不会受到影响。

这在iOS 8上对我很有效。标题中只有空字符串,但@内没有空格

  [[[UIAlertView alloc] initWithTitle:@""
     message:@"My message" 
     delegate:nil
     cancelButtonTitle:@"OK"
     otherButtonTitles:nil] show];

这在iOS 8上适用于我。标题中只有空字符串,但@内没有空格

  [[[UIAlertView alloc] initWithTitle:@""
     message:@"My message" 
     delegate:nil
     cancelButtonTitle:@"OK"
     otherButtonTitles:nil] show];

如果未设置警报标题,则会发生这种情况。奇怪,我知道

将警报标题设置为。如果您需要,请清空。不想添加任何标题

UIAlertController(title: "", message: "The alert message", preferredStyle: .alert)

如果未设置警报标题,则会发生这种情况。奇怪,我知道

将警报标题设置为。如果您需要,请清空。不想添加任何标题

UIAlertController(title: "", message: "The alert message", preferredStyle: .alert)