Browse Source

Merge pull request #453 from moxiegirl/remove-ios-samplecode

Correcting capitalization of signIn
feat/clarity-updates
Moxiegirl 5 years ago
committed by GitHub
parent
commit
f391be05d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      _ios/tutorial.md

10
_ios/tutorial.md

@ -570,7 +570,7 @@ In this section, you edit the `ViewController.swift` file using the storyboard a
![](images/add-action.gif)
5. Set the **Connection** to `Outlet`.
6. Name the new section `signinButton`.
6. Name the new section `signInButton`.
![](images/signinbutton.png)
@ -594,7 +594,7 @@ In this section, you edit the `ViewController.swift` file using the storyboard a
}
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet var signinButton: UIButton!
@IBOutlet var signInButton: UIButton!
}
```
@ -604,7 +604,7 @@ In this section, you edit the `ViewController.swift` file using the storyboard a
```xml
<connections>
<outlet property="nameLabel" destination="9eE-ZS-LU9" id="Ahv-Te-ZZo"/>
<outlet property="signinButton" destination="Lfp-KX-BDb" id="yef-Jj-uPt"/>
<outlet property="signInButton" destination="Lfp-KX-BDb" id="yef-Jj-uPt"/>
</connections>
```
@ -647,11 +647,11 @@ this application in your mobile add for now. In XCode, do the following;
let name = retrievedUserData?.profile?.name ?? "Nameless Person"
self.nameLabel?.text = "Hello, \(name)"
self.nameLabel?.isHidden = false
self.signinButton?.setTitle("Sign Out", for: .normal)
self.signInButton?.setTitle("Sign Out", for: .normal)
print("UI update SIGNED_IN")
} else {
self.nameLabel?.text = "hello-blockstack-ios"
self.signinButton?.setTitle("Sign into Blockstack", for: .normal)
self.signInButton?.setTitle("Sign into Blockstack", for: .normal)
print("UI update SIGNED_OUT")
}
}

Loading…
Cancel
Save