用 self.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.5]; 替换 alpha 转载于:https://www.cnblogs.com/xzguo/p/4968278.html