Change Text Color of Items in UIActionSheet - iOS 8

前端 未结 9 1421
星月不相逢
星月不相逢 2020-11-29 02:26

I had been using following code to change text color of items which I add in UIActionSheet.:

- (void)willPresentActionSheet:(UIActionSheet *)act         


        
9条回答
  •  伪装坚强ぢ
    2020-11-29 03:04

    Swift 4

        let alert =  UIAlertController(title: "title", message: "message", preferredStyle: .alert)
        alert.view.tintColor = UIColor.black
        self.present(alert, animated: true, completion: nil)
    

提交回复
热议问题