CodeHint


iOS (10 items)



AltTool IPA
/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool -v -f APP.ipa -u itunesconnect@user.com -p password
  Edit
sudo gem install cocoapods --pre

Install cocoapods

  Edit
    self.navigationController.isNavigationBarHidden = true

Hides navigation bar

  Edit
  Transparent navigation bar
self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: UIBarMetrics.default
self.navigationController?.navigationBar.shadowImage = UIImage()
  Edit
xcrun swift -version

Find out what swift version you are using

  Edit
  Get facebook user data
FBSDKGraphRequest(graphPath: "me", parameters: ["fields": App.facebookPermissions]).start(completionHandler: { (connection, result, error) -> Void in
                if (error == nil){
                    print("result: \(result)")
                }
            })
  Edit
  Get facebook access token
    static var accessToken: String? {
        get {
            if let current = FBSDKAccessToken.current() {
                return current.tokenString!
            }
            return nil
        }
    }
</preformated>
  Edit
  Make facebook login
FBSDKLoginManager().logIn(withReadPermissions: facebookPermissions, from: self) { (result, error) in
                if error != nil {
                    print("FBSDKLoginManager error :: \(error.debugDescription)")
                    FBSDKLoginManager().logOut()
                }
            }
  Edit
  Load persistentContainer on AppDelegate
    lazy var persistentContainer: NSPersistentContainer = {
        let container = NSPersistentContainer(name: "Amazing")
        container.loadPersistentStores(completionHandler: { (storeDescription, error) in
            if let error = error {
                print("PersistentContainer :: error :: \(error)")
            }
        })
        return container
    }()
</performatted>
  Edit
    Library ---> DLRadioButton
<a target="_blank" href="https://github.com/DavydLiu/DLRadioButton">https://github.com/DavydLiu/DLRadioButton</a>
  Edit