小弟在升級Xcode8後發現,AlertView的背景顏色似乎被另一層View蓋住,
這邊是DEMO的連結如下
https://drive.google.com/file/d/0Bx3rZLw6NauYcUpHc3RXNC01YTg/view?usp=sharing
很明顯可以看出在IOS8.9 與10顏色不同,也附上部分程式碼
UIAlertController *alertloading = [UIAlertController
alertControllerWithTitle:nil message:@""
preferredStyle:UIAlertControllerStyleAlert];
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc]
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
spinner.center = CGPointMake(130.5, 65.5);
spinner.color = [UIColor redColor];
[spinner startAnimating];
UIView * firstView = alertloading.view.subviews.firstObject;
UIView * nextView = firstView.subviews.firstObject;
nextView.backgroundColor = [UIColor colorWithRed:20.0f/255.0f
green:20.0f/255.0f
blue:20.0f/255.0f
alpha:1.0f];
目前就是上面這邊顏色改成黃色或其他也彷彿被一層看不到的擋住,
請問有人遇到類似的問題嗎?
附上方便線上閱讀連結 https://goo.gl/gcxItb