がボタンにGoogleの歌うの操作が許可されていません。代わりにできるのは2つのうちのどちらかです。 Google Sing Inボタンの上に自分のボタンを表示するか、自分の機能で自分の衣装ボタンを作るだけです。
例
今
//add google sing in button
googleBtn.frame = CGRect(x: 16, y: 116 + 66, width: view.frame.width - 32, height: 50)
view.addSubview(googleBtn)
let customButton = UIButton(type: .system)
customButton.frame = CGRect(x: 16, y: 116 + 66 + 66, width: view.frame.width - 32, height: 50)
customButton.backgroundColor = .orange
customButton.setTitle("Custom Google Sing in ", for: .normal)
customButton.setTitleColor(.white, for: .normal)
customButton.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14)
customButton.addTarget(self, action: #selector(handlecustomgoogleSingin), for: .touchUpInside)
view.addSubview(customButton)
機能
func handlecustomgoogleSingin(){
GIDSignIn.sharedInstance().signIn()
}
これは、この
![enter image description here](https://i.stack.imgur.com/O7qBk.png)
のようなものをレンダリングする必要があり、それは変更することはできませんはい、あなたは '.styleを使用する必要があります'プロパティ。 – PiyushRathi