Development Note/iOS
[objc/swift] iOS 구글로그인(Feat.PhotoUrl 얻기)
JamesChun
2021. 5. 11. 14:04
Firebase sdk 사용하지 않고 iOS에서 구글로그인 구현하기
photo url 얻기
obj:
if (user.profile.hasImage)
{
NSURL *url = [user.profile imageURLWithDimension:100];
NSLog(@"url : %@",url);
}
swift:
if user.profile.hasImage
{
let pic = user.profile.imageURLWithDimension(100)
Print(pic)
}
출처
https://stackoverflow.com/questions/32871484/ios-google-sign-in-how-can-i-get-user-image-url