Hey guys, since iOS 10, Apple requires us to declare ahead that we want to access user private data. We can ask for permission accessing the photo library by adding Privacy - Photo Library Usage Description to the Info.plist file.
UI Image Views response to user interaction whereas
UI Buttons do? Hint: they might have a property indicating that, something related to "interaction".
In the lecture, we get the location of a profile photo on the database corresponding to a user by using:
FIRStorage.storage().reference(forURL: "gs://instagramclone-fc544.appspot.com") .child("profile_image").child(uid!)
Can this be written more compactly?
In the lecture, we use the following snippet to create new user reference on the database:
let ref = FIRDatabase.database().reference() let usersReference = ref.child("users") let newUserReference = usersReference.child(uid!)
Use chaining to make the above snippet as compact as possible.
FIRDatabaseReference object, a
newUserReference object as in the lecture for example, whose string format is of the form
root_refererence_string/users/user_relative_path_string, how do we extract the last token of this reference in string format, which is the
Print and compare the following: