Code Monkey home page Code Monkey logo

loginhelperforkakao-ios's Introduction

LoginHelperForKakao-iOS

Kakao Talk 회원가입의 편리성을 위해 만들어진 Login Helper 입니다.


KAKAO LOGIN

카카오 로그인을 보다 간편하게 만들 수 있도록 구성하였습니다.

필요사항

  1. 카카오 앱 생성
  2. KAKAO_APP_KEY Xcode 프로젝트에 등록

사용 방법

  1. 카카오 버튼을 표시할 UIView 의 Class Name을 KKakaoLoginButton 로 변경합니다. res

  2. actionSigninButton() 을 호출 하여 로그인한 카카오 계정 정보를 업데이트 합니다.

@IBOutlet weak var btnKakao: KKakaoLoginButton!
@IBAction func kakoAction(_ sender: Any) {
    btnKakao.actionSigninButton(view: self, completion: {(profile, error) -> Void in
             if(error != nil){
                print("error : \(error!)")
                return
              }
              DispatchQueue.main.async(execute: { () -> Void in                                                                            					 print("Kakao Email = \(String(describing: profile!.email))")
                  if let nickName = profile!.property(forKey: KOUserNicknamePropertyKey) as? String{
                       print("Kakao Nick Name = \(nickName)")
                  }
                  if let profileImage = profile!.property(forKey: KOUserProfileImagePropertyKey) as? String{
                      print("Kakao Profile Image = \(profileImage)")
                  }
   	})
}

loginhelperforkakao-ios's People

Contributors

faithdeveloper avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.