WHY did my professor not taught me this since the very beginning!? Literally the most useful video so far! I wished I have seen this before my semester started.
I was DYING to fix this problem for about 5hrs. Thank you so much, even though this video was posted some time ago. (I only started learning Xcode on Monday, so progress is finally looking good)
Super awesome explanation, so clear. My only issue is the volume I had my laptop volume all the way up and the youtube volume all the way up and it was still pretty quiet.
can i rearrange the tab bar elements? In addition change the init controller? Also when i try to use a custom image as a tab bar item's icon, it just cover the whole screen. How do i resize it? I have already try to set the Image Inset to make it fit on storyboard but when i press the tab on simulator, it bounce back to origin size and cover the screen again.
Thanks it helped a lot. But there is a question: How can I have a default navigation bar for all those views?! For example think I want to have logo, menu button and etc in navigation bar. I should add them to each navigation bar one by one and seprately?!
Generally speaking the Tabbar should always be visible. it's the nature of tabor navigation. If you want the tab bar to not be visible you are probably showing a Modal view and will return to the tabbar. Use present view controller: developer.apple.com/documentation/uikit/uiviewcontroller/1621380-present
What if I want to show the navbar, but not the Tabbar? For when I want to let users go back to the tabbarcontroller, but not let them switch tabs without going back first.
Sounds like you want to use a modal. A modal is a view that covers the current view. When you dismiss the modal you will return the previous view controller.
yes But can I use navigation bar in that modal ? I mean I want to make some thing like telegram chat app when you select a contact to chat the the new page will have the navigation bar just like previous page But there is no tab bar But the user can drag screen to go back and see the tab bar is behind the chat page
why cant you put the tab bar embedded into a navigation controller so that it just has one and then all pages get the nav bar without having to repeat it for each tab item
Give it a try! But, read the Human Interface Guidelines has to say about Tabbar Navigation: developer.apple.com/ios/human-interface-guidelines/bars/tab-bars/
so i tried to make a nav controller have some pages then one of those pages leads to a tab bar controller and when i do that the title that i gave them doesnt show. do you know how to make them show?
Can you tell me how to hide tab bar on just ONE view. Example: Lets says we have 2 view: View1, View2. If I click from View1 to View2 I want to hide tabBar and when I click "Back" on View2 I want tabBar on my View1 is still there. Is it possible? Thank you :)
That's a good question. Here are a couple answers I found: stackoverflow.com/questions/28777943/hide-tab-bar-in-ios-swift-app stackoverflow.com/questions/27008737/how-do-i-hide-show-tabbar-when-tapped-using-swift-in-ios8
I tried all of that already and it's not working. Once I hide tab on View2 and with segue already implemented "back" button when I return to View1 I dont see my tab any more :/. Have you tried something of it?
You probably need to show the tabor when you return. Set this in viewWillAppear in both views. One view will show the tab bar one will hide the tab bar.
I did it. Mainly I just set on views I don't want the tab bar to shows on storyboard set "Hide bottom bar on push" to true. I have one specific question for you if you have 10minutes of your time? It's a little bug and I'm pretty sure you know whats going on because I'm just beginner with this. Can w speak through mail, skype?
Mitchell Hudson LoL more like begging you. There is absolutely no one explaining MacOS programming. And the Apple documentation about all the NS controls is pretty much encrypted gliphs to me.
Hi there . I'd like to ask you a question that has taken me few weeks to solve yet I couldn't figure it out . It 's not quite about this video thought . I am trying install Firebase3 in my project . after I hit the command " pod install " it starts the installation but at the end it gives me the following error . [!] Unable to add a source with url `github.com/CocoaPods/Specs.git` named `master`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`. Then I tried to go to ~/.cocoapods and clone the link directly and I faced this error remote: Counting objects: 733146, done. remote: Compressing objects: 100% (5/5), done. error: RPC failed; curl 56 SSLRead() return error -9806.00 KiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed I would strongly appreciate if u can help to solve this problem :) Hi there . I'd like to ask you a question that has taken me few weeks to solve yet I couldn't figure it out . It 's not quite about this video but it's not irrelevant neither . I am trying install Firebase3 in my project . after I hit the command " pod install " it starts the installation but at the end it gives me the following error . [!] Unable to add a source with url `github.com/CocoaPods/Specs.git` named `master`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`. Then I tried to go to ~/.cocoapods and clone the link directly and I faced this error remote: Counting objects: 733146, done. remote: Compressing objects: 100% (5/5), done. error: RPC failed; curl 56 SSLRead() return error -9806.00 KiB/s fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed I would strongly appreciate if u can help to solve this problem :)
That's a hard one to solve remotely. Check the problem dependency on cocoapods.org. Make sure it exists, and that you loading the most recent version. If that checks make a new single view app, and go through the process of setting up cocoa pods for that app. This might tell us if the problem has something to do with your project or it's something with the files on the server. If that doesn't work edit your pod file and try and load a pod that you are sure is good. I think the problem here is with the pod on the server.
Not sure, sounds like you want to animate the image on the tab bar. You may want to create your own tab bar from UIImageView and other UI elements rather than try and modify the tab bar. Then again you could try and get a reference to the image on the tab bar. I suspect each tab bar tab is a UIView with an image an d label. Thats a a tough question to answer here it will take some experimentation.
+Mitchell Hudson Well I've tried different thing, and it seems like the one with creating my own tabbar doesn't work for me, because i still want relation between the other four viewcontrollers. .. So
That's a tough problem. You need to take a close look at how the tab bar is structured. It probably has a view property that holds the image on the bar. If you can get this you can probably animate it.
I think you want to open your view as a modal from the tabor button rather than showing the view controller associated with that tab. www.reddit.com/r/swift/comments/3nnj7y/how_do_you_present_a_view_controller_modally_from/
WHY did my professor not taught me this since the very beginning!? Literally the most useful video so far! I wished I have seen this before my semester started.
For weeks I was desperate to find this information. Thanks so much!
I was DYING to fix this problem for about 5hrs. Thank you so much, even though this video was posted some time ago.
(I only started learning Xcode on Monday, so progress is finally looking good)
Amazing tutorial man, super easy to follow! Very nice to see everything explained from the ground up.
Great tutorial Mitch ! very helpful and crisp. Helped me understand all aspects of tabbed Bar controller
Very helpful, Mitchell! It's over a year since this video was first uploaded but it will help me BIG TIME on my class's final mobile assignment :)
Really happy to hear your project is doing well, and thanks for the comment.
It's very helpful ! Especially the "embed' option which solved my problem. thank you ;)
Very well made, very easy to understand. Thank you very much!
Thank you so much exactly what I was looking for :)
Thanks for the video, you earned a new subscriber
Thanks so much! Was looking to a solution for hours!
watch your video a lot. it does help me. thanks!
+jiao yuhang Glad to hear it!
Dude! You are a life saver! This was exactly what I was trying to figure out! Thank you so much for this video! Thumbs up subs up!
Thank you so much - exactly what I had been looking for
Super awesome explanation, so clear. My only issue is the volume I had my laptop volume all the way up and the youtube volume all the way up and it was still pretty quiet.
Dude, this was so helpful. Thank you
Thank you Mitchell! Your video was very helpful :)
can i rearrange the tab bar elements? In addition change the init controller? Also when i try to use a custom image as a tab bar item's icon, it just cover the whole screen. How do i resize it? I have already try to set the Image Inset to make it fit on storyboard but when i press the tab on simulator, it bounce back to origin size and cover the screen again.
THANK YOU!!! Now I can add navigation controller in my project :D
How are you doing the click and drag within storyboard?
Thank you very much. Awesome explanation
Awesome video. Solved my problem! Thanks!
Great tutorial. Thanks!
This is very helpful to me, thank you!
GREAT tutorial, thanks so much!
Excellent tutorial, thank you!
Thanks it helped a lot. But there is a question: How can I have a default navigation bar for all those views?! For example think I want to have logo, menu button and etc in navigation bar. I should add them to each navigation bar one by one and seprately?!
iam kinda new at this. and am using Xcode 4. went through the steps said in video still the navigation controller is not shown. any insights?
I want to push data from one controller to the other. not just a simple segue
somebody help me ! while switching from tabs I need to click twice. can not figure out why!
thank mitchell
Dude, this was so helpful.
does the login screen have to be the initial view controller?
Excellent video! I love it.
Great tutorial man!
Helpful, Thank you
I always get a ")
libc++abi.dylib: terminating with uncaught exception of type NSException" when I click the next tab. How do I remedy this?
There is probably more in the error scroll to the top of the console and find where the error begins it might tell you more.
But The problem is that I don't want to see tab bar when navigate to another page
how can I do that ?
Generally speaking the Tabbar should always be visible. it's the nature of tabor navigation. If you want the tab bar to not be visible you are probably showing a Modal view and will return to the tabbar. Use present view controller: developer.apple.com/documentation/uikit/uiviewcontroller/1621380-present
What if I want to show the navbar, but not the Tabbar? For when I want to let users go back to the tabbarcontroller, but not let them switch tabs without going back first.
that's good but the problem is that I can't use navigation bar in that page how can I handle that ?
Sounds like you want to use a modal. A modal is a view that covers the current view. When you dismiss the modal you will return the previous view controller.
yes But can I use navigation bar in that modal ? I mean I want to make some thing like telegram chat app when you select a contact to chat the the new page will have the navigation bar just like previous page But there is no tab bar But the user can drag screen to go back and see the tab bar is behind the chat page
great explanation. thanks
Nice man, i needed this. Thanks!!!!
You're welcome, glad I could help!
Thanks!!! Great tutorial.
Thanks, I'm happy to hear this was helpful!
why cant you put the tab bar embedded into a navigation controller so that it just has one and then all pages get the nav bar without having to repeat it for each tab item
Give it a try! But, read the Human Interface Guidelines has to say about Tabbar Navigation: developer.apple.com/ios/human-interface-guidelines/bars/tab-bars/
so i tried to make a nav controller have some pages then one of those pages leads to a tab bar controller and when i do that the title that i gave them doesnt show. do you know how to make them show?
I have the same question.I want to give a total navigation on the top of the tabbar.
Super! Thank you!
great video! thank you!
wow ~~~ nice tutorial! thank you ^
tnx man, my problems solved!
Awesome!
Great work!
completely served the purpose..
Very helpful thank you
Thank you so much! I love you
omg mitchell thankssssssssss
Can you tell me how to hide tab bar on just ONE view. Example:
Lets says we have 2 view: View1, View2. If I click from View1 to View2 I want to hide tabBar and when I click "Back" on View2 I want tabBar on my View1 is still there. Is it possible? Thank you :)
That's a good question. Here are a couple answers I found:
stackoverflow.com/questions/28777943/hide-tab-bar-in-ios-swift-app
stackoverflow.com/questions/27008737/how-do-i-hide-show-tabbar-when-tapped-using-swift-in-ios8
I tried all of that already and it's not working. Once I hide tab on View2 and with segue already implemented "back" button when I return to View1 I dont see my tab any more :/. Have you tried something of it?
You probably need to show the tabor when you return. Set this in viewWillAppear in both views. One view will show the tab bar one will hide the tab bar.
I did it. Mainly I just set on views I don't want the tab bar to shows on storyboard set "Hide bottom bar on push" to true.
I have one specific question for you if you have 10minutes of your time? It's a little bug and I'm pretty sure you know whats going on because I'm just beginner with this. Can w speak through mail, skype?
I'm pretty busy, I work all day. Post your work to github and I'll take a look.
Actual stuff start at @8:41 . Great tutorial though
Thank you!!!
Thank you a LOT)
very helpful
thanks for help!
Up to point, Thanks ;)
Thanks!
Updated MacOS Xcode 9 Swift 4 would be amazing!
You're telling me! I have been working in JavaScript lately so my Swift is getting rusty.
Mitchell Hudson LoL more like begging you. There is absolutely no one explaining MacOS programming. And the Apple documentation about all the NS controls is pretty much encrypted gliphs to me.
nice explanation
Thanks Mitchell
Kepe it up mate 👍🏻
Thank you
Hi there . I'd like to ask you a question that has taken me few weeks to solve yet I couldn't figure it out . It 's not quite about this video thought . I am trying install Firebase3 in my project . after I hit the command " pod install " it starts the installation but at the end it gives me the following error .
[!] Unable to add a source with url `github.com/CocoaPods/Specs.git` named `master`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
Then I tried to go to ~/.cocoapods and clone the link directly and I faced this error
remote: Counting objects: 733146, done.
remote: Compressing objects: 100% (5/5), done.
error: RPC failed; curl 56 SSLRead() return error -9806.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
I would strongly appreciate if u can help to solve this problem :)
Hi there . I'd like to ask you a question that has taken me few weeks to solve yet I couldn't figure it out . It 's not quite about this video but it's not irrelevant neither . I am trying install Firebase3 in my project . after I hit the command " pod install " it starts the installation but at the end it gives me the following error .
[!] Unable to add a source with url `github.com/CocoaPods/Specs.git` named `master`.
You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`.
Then I tried to go to ~/.cocoapods and clone the link directly and I faced this error
remote: Counting objects: 733146, done.
remote: Compressing objects: 100% (5/5), done.
error: RPC failed; curl 56 SSLRead() return error -9806.00 KiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
I would strongly appreciate if u can help to solve this problem :)
That's a hard one to solve remotely. Check the problem dependency on cocoapods.org. Make sure it exists, and that you loading the most recent version. If that checks make a new single view app, and go through the process of setting up cocoa pods for that app. This might tell us if the problem has something to do with your project or it's something with the files on the server. If that doesn't work edit your pod file and try and load a pod that you are sure is good.
I think the problem here is with the pod on the server.
Thanks , I'll give it a try ;)
thanks
Thanks
Thumbs up!!
Mitchell did you get my message??
+1arschloch1 No, I don't think so. Where did you post the message?
+Mitchell Hudson it was a privat message to your chanel :/
I don't see any private messages?
+Mitchell Hudson thats weird :/, is it possible to send a private message somewhere? mby email?
You can just post a comment under the video.
You may speak a bit louder next time. But anyway thanks for your video!
Can you help me make a tabbar, that when i click one on the icons make a popup. Just lige InstaGram when you want to create new post :)
Not sure, sounds like you want to animate the image on the tab bar. You may want to create your own tab bar from UIImageView and other UI elements rather than try and modify the tab bar.
Then again you could try and get a reference to the image on the tab bar. I suspect each tab bar tab is a UIView with an image an d label.
Thats a a tough question to answer here it will take some experimentation.
+Mitchell Hudson Well I've tried different thing, and it seems like the one with creating my own tabbar doesn't work for me, because i still want relation between the other four viewcontrollers. .. So
That's a tough problem. You need to take a close look at how the tab bar is structured. It probably has a view property that holds the image on the bar. If you can get this you can probably animate it.
I think you want to open your view as a modal from the tabor button rather than showing the view controller associated with that tab.
www.reddit.com/r/swift/comments/3nnj7y/how_do_you_present_a_view_controller_modally_from/
nice tutorial but voice is too loo ! too much, but thanks one thing i am stuck it and resolve it thanks any ways !
The volume level seems too low
It is. I don't know if it's simply my Mac Book. I have not tried it on another machine.
volume is low
Thank you!!