iOS MainTabBarController and User Profile
Fullstack Social iOS NodeJS REST
Now that the features of implementing a user profile is available on the website, let's make sure that we can both navigate and display a User Profile screen in our iOS application. First I'll quickly go over how to implement a UITabBarController with multiple pages. Next I'll show you how you can reuse the ProfileController from previous lessons to show our profile.

Comments (5)
romulusc
4 years ago
Hi Brain, all good so far with the tab bar in place, really enjoying the course. I've skipped lesson32 though, with the sails helpers - no play button on the video yet...
Brian Voong
4 years ago
romulusc
4 years ago
No worries, Cheers Brian, I'm on to it now :). Well, you got me with this course, is right up my alley. When I discovered coding it was with Swift and IOS9 first for me, and some HTML at the same time...your videos stood out from the crown on youtube and also enjoyed the challenge to start coding without storyboards. But the more I was learning swift, the more I wanted to know FullStack and I think this course is the best there is to me. I think I've identified this as the area I would love to perfect in time. Keet up the good work professor!
Dustin Doosun Yang
4 years ago
Hello Brian, not sure what I did wrong. But everytime I scroll profile page up and down, profile image is being changed back to the default image(user icon image). when I load that page again, it shows the correct image by the way. issue only happens if I scroll the page up and down
Dustin Doosun Yang
4 years ago
I changed from profileImageView.sd_setImage(with: URL(string: user.profileImageUrl ?? "")) profileImageView.image = #imageLiteral(resourceName: "user") to profileImageView.image = #imageLiteral(resourceName: "user") profileImageView.sd_setImage(with: URL(string: user.profileImageUrl ?? "")) Basically I changed order above two lines It resolved.
mreaybeaton
3 years ago
Perfect this helped me thank you. It makes sense if you think about it, the first order will update the photo, THEN put it back to the icon, the second order will have icon first, then photo if one exists. Great!.
sereisoglu
3 years ago
Hey Brian. How to logout for iOS app? How do we know if the user is logged in to the iOS app?
skulsky
3 years ago
Hi Brian, Sorry to be a pest, but sails keeps deleting my users every couple of hours, any idea why this would be happening? The error message I get in the terminal when this happen is as follows: warn: Somehow, the user record for the logged-in user (`\(some user id)`) has gone missing.... (401) Any help is appreciated, thanks.
Brian Voong
3 years ago
gerkov77
2 years ago
Hi Brian, after lesson 32 all my users are gone. Was there a migration i haven't noticed? Last time my server was running, all my users existed. Same error message that @skulsky mentioned. warn: Somehow, the user record for the logged-in user (`\(some user id)`) has gone missing.... (401)
joeypozzyclinch
3 years ago
If anyone comes along and is working in Xcode 11.3 (or any Xcode where you have a SceneDelegate now), and you're confused as to how to get started with the MainTabBarController, you can use this Medium article to get ya started!: https://medium.com/@ahrchen/programmatically-set-default-view-to-tabbarcontroller-xcode-11-ios-13-38bd8e0e63b0
HELP & SUPPORT