There’s a faster way of doing this. Just select the view controllers, click on editor at the top, and select “refactor to storyboard”. That’ll save you about 10 steps 🙂
Yup. This was pointed out by many, lol. That's what I love about posting videos. If I miss something, or there's a better way, people are going to let me know! Thanks for pointing it out.
I like the way shown on the video better than through the editor. Using the editor leaves references to all of the view controllers being moved rather than just one to the newly created storyboard.
I started my job career in a company where they use storyBoard , before that we I used pure code. Now The storyBoard Journey started once again . The best best and best video I ever found . I always love your content :-)
Sean at 11:04 you can change the order of the tab bar items by pressing and holding the item and put it to your preferred order. Thanks for the video, very helpful!!!
thanks Sean. It is much easier to work with Story board after watching this video. And for sure it is much easier it looks after watch your straight to the points video. You save my time and thank you for that.
Great video man! A little thing I realized about using TabBarControllers is you can actually rearrange the order of the tabs by clicking and dragging the tabs in tab bar controller in the order you want. Then you wouldn’t have to delete the segues and re-add them again!
The entire video is a gem; the message comes across clearly, and as someone else said in the comments the best !yt on the topic. 5:19 Note to self: XCode 10 Object Library CMD + SHIFT + L
A great video ! I have a very massive storyboard in one project and it wasted time loading. now i am going to refactor it, thanks to you. Thank you very much and keep up the good work :)
'Refactor to Storyboard` came out after I had already built my habits (the way I did this video). I've never really used it, but interesting to hear that it can act weird sometimes.
Great one how come I missed this tutorial? I'm building this project in my workplace and I kinda fell in plenty view controllers on my storyboard which makes loading my projects very slow especially when I visit the storyboard to add a new view controller. I'm glad I subscribed to your channel. Thanks man!!
Have you turned on Notifications on my channel (next to the subscribe button)? If you do that, you'll get a notification for new videos. Thanks for watching!
I stopped using storyboards very early on in the learning process. My ancient MacBook Air would constantly lag when trying to do anything, even with two or three viewControllers on screen. Now, I do EVERYTHING in code, and I’m never going back if I can help it.
Programatic UI is perfectly fine. You know a bit more about how the UI works when you do it that way, and it's a good way to learn. I actually use a hybrid approach, using skeletal storyboards.
Hi Sean. Your videos are very helpful to me, and I really appreciate your your help. I'm curious about learning your UI hybrid approach. Can you please make a video on it? Thanks a lot.
I love to work only programmatically. I have a project I have to use your recommendation as in Xcode 10 is very slow to handle the project. It was fine with Xcode 9
Building your UI programmatically is perfectly fine. This wasn't a Storyboard vs. Code video. Just helping those who use storyboards use them a little better.
Is there a video for the navigation bar, showing how to use the first back button in a secondary storyboard to take you back to, say, the second view controller on the main storyboard?
In xcode 11, cut and paste is not working. I just did the editor > refactor to storyboard (as suggested by Fady Yecob), then created a new storyboard from there.
I'm new and this might be a stupid question but what if you wanted to segue from one of the story boards back to the tab bar view controller? Like a logout button, then how can you make that segue using the storyboard?
Thanks for that tutorial. What if you wanted to perform a segue from the 2nd green view controller (Green VC tab) to the 3rd blue VC (bleu VC tab)? what will the prepare for segue method looks like?
You'd adjust your storyboard reference so that the initial view controller was the 3rd Blue VC. The properties of the storyboard reference let you input a storyboard identifier for a view controller
@Sean A loved the video man keep up the good work, I am wondering though what is your preference storyboard or code ? I would love to see a video about this topic indepth couse its a pretty big discussion in our community
Yup, it's a big discussion because (in my opinion), both side are completely valid and it comes down to personal preference. Me personally, I use a mix of both. "Skeletal Storyboards" is what it's been called. I'll be doing a video on this topic soon.
Well explained Sean. Definitely prefer this approach when working in a team and working with large projects having many storyboards. Does creating multiple storyboards have any effect on performance or loading?
Love your videos Sean. You've helped me so much over the month's 😁 is there a way to put alert message in to it's own class. I'm re-using the same code all over my app and i know this is totally wrong. Any pointers would be helpful. Thanks for the video's dude and keep up the hardwork 😁
hey, i think I can help you you can make a static function in an Alert class class Alert{ static func present(sender: UIViewController, title: String, message: String, buttonText: String = "OK"){ let alert = UIAlertController(title: title, message: message, preferredStyle: .alert) let button = UIAlertAction(title: buttonText, style: .default, handler: nil) alert.addAction(button) sender.present(alert, animated: true, completion: nil) } } //You can call the fuction like this Alert.present(sender: **SomeViewControllerInstance**, title: "Oops", message: "An unknown error occured.") You could even give the title and message parameters default values to (at times) make your function call even shorter.
There are various versions of what Patrick answered, but that's the gist of it. Use any variation of that and you'll be good. Thanks for the kind words about the channel.
I think that if you only show "Alert" messages in your view controllers then you should extend UIViewController and make this function as an instance method of it because with this way you drop the "sender: UIViewController" parameter, allowing it to be called a bit more easily.
Cong Doan You‘re usually only going to be calling the function in a viewController subclass, so yes, that makes a lot of sense. Thanks, I’ll be sure to use that in my projects!
Hi, I have a question and didn't find this asked in comments below... Example storyboard was quite simple if compare with monsters what you can find in real life when "everything in one Storyboard" approach is used. My example: Project with > 30 view controllers in it. Lot of them are connected with segues and you can jump over the screens between green, pink and blue flows(if comparing with your example) All the new views what are added by me have no ViewController on StoryBoard at all or have it but without segues. So I'm planning to add new flows in new StoryBoards, but still, don't have a plan about old one. What would be the best way to cut it in the parts? 1) StoryBoard references for all the segues? 2) Segue replacement with viewcontroler pushing in the code 3) Put all the new things in new StoryBoards and try to open old one as rarely as possible and ignore it? :D 4) ..
Man, Airvars... how do you keep working on these crazy projects? 5000 line VCs, and now this, lol... Brave man to always get in there and fix other people's problems. But anyway, this would be a pretty in-depth refactor. All the options you listed are perfectly viable (with the exception of #3, lol). My initial thought would be to replace the segues with references... but also doing the navigation is code is fine too. I'd have to see the project to really know how to do it... but both of those methods (1 or 2) is perfectly fine. I would just be consistent throughout the project. Having half of the navigation be done via segues, and the other half in code is kind of confusing.
Question - how do I programmatically write segues from a different storyboard that are triggered based on an action? For example a user enters their information and clicks login, upon the credentials coming back valid it will redirect them to the main view controller. How do I do this?
Question , are you using an iMac Pro ? .. I have been thinking of getting one but didn't know if it was necessary . Opposed to just a regular iMac 27 5k ? Right now I have a Mac mini (hdmi) hooked up to a dell 27 inch , I also have a MacBook Pro hooked up to the same dell monitor via USB C .
Hey Scott, yeah, I'm using an iMac Pro. It's not necessary at all if all you're doing is software development. The main reason I got my iMac Pro is for editing video for this RUclips channel.
Hi Sean! I love your videos. I wanted to ask: I feel like storyboards are dreaded in the programming community. Do you prefer to create views programatically and using SnapKit for Autolayout for example? Or do you make storyboards in your projects? What about big companies? Storyboards/XIBs or Programatically created views?
LBTA says otherwise, but every position I've had and every interview I've done, if you don't know how to work with storyboards, you're not getting hired.
I typically use both in a project, while using skeletal storyboards. As for which to learn... the best answer is both. Because requirements are going to vary greatly between companies.
Tittle: A W E S O M E ! Question: I might be absolutely 100% wrong, but after watching this beautiful I did couple of experiments on my end, and find out that refactoring storyboard does not work with out tabbed bar items, and navigation controller. is that right? or am is just getting the entire thing wrong. also every example I've come across are in tabbed apps.
Thanks! Glad you liked the video, but you can refactor the storyboard no matter what. Doesn't have to be a tabbed app (that's just the most fitting example). I think what you may be getting wrong is how to properly transition between screens on different storyboards. You could literally have each view controller have it's own storyboard if you wanted. (I wouldn't recommend that, but it's perfectly fine to do).
If you look at the inspector for the storyboard reference, just below where you chose which storyboard it referenced, there’s a field for a storyboard identifier for a view controller. Type on the identifier for the view controller you want to go to.
Hi, Sean,Thank you for sharing us!! I have a question. If we make the new view file with the xib file instead of the storyboard, like cheking the "Also create XIB file" when creating a new view controller, how can I use the storyboard references? When I set the name of the storyboard as "GreenViewController" on the storyboard references I got the error saying: : "error: Did not find storyboard named "GreenViewController" referenced from Main.storyboard".
On the other hand, you used to be able to reorder tabs by reordering them in the Document Outline, but that doesn't seem to be working in Xcode 10 Beta 2.
(Now using Xcode 10 Beta 3) You can reorder tabs by dragging them around in the storyboard, no need to delete and reestablish relationship connections. However, if you're using storyboard references, it won't be apparent that anything has happened until you build and run, because the tabs in the tab bar just say "Item". Clicking on the relationships in the Document Outline highlights what they point to, but so far it does not highlight the associated tabs, so no help there yet. Maybe Beta 4...
After further experimentation... Reordering tabs in the visual editor *does* also reorder relationships in the Document Outline, so the order the relationships appear in the Document Outline is also the order the tabs will appear in the tab bar.
I usually zoom in on the code portions of my tutorials, but this one had no code, so all the Xcode items were tough to see. I'll keep this in mind for next time.
You can just reorder the tab bar icons by click, holding, dragging and dropping in the order that you desire. There's no need to delete VC relationships and reset them in the desired order.
That approach will only be valid if you already have the caterpilar/spider web done, the way @Sean Allen explains this viewers can apply this way of thinking from the beginning.
Anyone know if it's possible to make my custom tab item for Tab Bar Controller? I'd imagine something like I used to CGRect() to make NSTableViews to make each line their own color should be possible.
I was working in a project, but there was lots of XIB for each element, e.g. tableview.xib, cellview.xib, subcell.xib, didselectt.xib, the project was develop in objective-c what usefull is that?, was very werid to me, but i don't have many experience. I like more this kind of work with storyboard.
Hi my app crashes. I get this error: doesn't contain a view controller with identifier 'checkBalance'. But the checkBalance view controller actually exist just that I did a refractor and moved it into a new storyboard. I am performing the segue programmatically . let moveTo = storyboard?.instantiateViewController(withIdentifier: "checkBalance") present(moveTo!, animated: true, completion: nil). Thanks
In whatever storyboard holds your checkBalance view controller, click on that viewController. On the right, at the top of the inspector, click the middle, down arrow looking icon. A few fields down, you should see a field for "storyboard identifier". Make sure you've entered "checkBalance" as the identifier. This needs to match exactly what you have in your instantiateViewController(withIdentifier: "checkBalance"). Try that and let me know
Thanks for your reply. What i wasn't doing was, I was suppose to specify which storyboard that my checkBalance view controller is in and after doing that I didn't need the optional ? in front of my storyboard. Thanks once again
I can't connect @IBOutlet var WebKit in viewController.swift to webKit in storyboard, even from option+click+drag from storyboard to viewController.swift is not successful. May i know what do i need to do? What i have done: 1. import Webkit 2. Create variable for Webkit in ViewController.storyboard 3. Create Tab Bar Controller -> Navigation Controller -> View Controller First -> View Controller 2 (inside this have Webkit) Please help, i'm stuck :(
Guys I'm having a serious issue with Tab Bar Controllers: I posted my question here: https: stackoverflow.com/questions/60131478/viewcontrollers-navigation-bar-is-added-below-navigation-controllers-navigatio Can anyone help me with this?
Watch Next - iOS Take Home Project - Job Interview Practice - Free Preview - ruclips.net/video/MSIe2y6Fee8/видео.html
There’s a faster way of doing this. Just select the view controllers, click on editor at the top, and select “refactor to storyboard”. That’ll save you about 10 steps 🙂
It's a great UI tip. Thanks Fady for sharing it.
Was about to write the same thing and then saw your comment. 🙂
Yup. This was pointed out by many, lol. That's what I love about posting videos. If I miss something, or there's a better way, people are going to let me know! Thanks for pointing it out.
Sean Allen yea your videos go both ways, I’ve learned a few things from your other videos 👍
I like the way shown on the video better than through the editor. Using the editor leaves references to all of the view controllers being moved rather than just one to the newly created storyboard.
I started my job career in a company where they use storyBoard , before that we I used pure code. Now The storyBoard Journey started once again . The best best and best video I ever found . I always love your content :-)
Thanks for the kind words, Junaid. Glad you liked it!
@@seanallen :-)
Sean at 11:04 you can change the order of the tab bar items by pressing and holding the item and put it to your preferred order. Thanks for the video, very helpful!!!
Thanks for pointing that out. Never realized that.
I literally didn't want to open the storyboard because it always took so long. But this ... now I have so much more sense to work. Thank you for that.
Happy to hear it helped, Roman!
thanks Sean. It is much easier to work with Story board after watching this video. And for sure it is much easier it looks after watch your straight to the points video. You save my time and thank you for that.
Glad you found it helpful, Alisa 😀
Good to hear that I am not the only one using logical units of storyboards 😊
It's the best way to use them, in my opinion.
Great video man! A little thing I realized about using TabBarControllers is you can actually rearrange the order of the tabs by clicking and dragging the tabs in tab bar controller in the order you want. Then you wouldn’t have to delete the segues and re-add them again!
Thanks for pointing that out. Never realized that.
I love your channel! I have been coding for 3 years and I am finally being paid to do so. Just love finding your helpful hints and tips.
Keep it up!
Thanks for the kind words! That's awesome to hear you're getting paid to do something you enjoy. It's a great feeling, isn't it?
Yes it is! I never thought it would happen, but if you stick with it, it will come to you.
Consistency is key 💪😎
Thank very much for this video. This allows to work much comfortably on a 2015 13' MacBook Pro.
Glad you enjoyed it, Eduardo 👍
let seanAllen = keepMakingAmazingVideosLikeThis(😇)
Nice. Thanks for the kind words!
The entire video is a gem; the message comes across clearly, and as someone else said in the comments the best !yt on the topic. 5:19 Note to self: XCode 10 Object Library CMD + SHIFT + L
Thanks Gjermund!
Wow! I didn't know that something like this even exists. Thank you Sean.
Glad it was helpful, Nilesh!
Thank you Sean.
A great video !
I have a very massive storyboard in one project and it wasted time loading. now i am going to refactor it, thanks to you.
Thank you very much and keep up the good work :)
Thanks for the kind words, Awais. Happy to hear you're able to use this is a real project 👍
This video is so helpful... thanks for creating and sharing.... Keep videos like these coming up.... Thanks and much appreciated
Happy it helped, Abhijit 👍
I'm definitely going to be sending this to a few people haha; this is how I like my storyboards to be as well.
Great minds think alike 😀
love this video i been trying to find a tutorial about this for ages and you explained it way better than everybody else
Glad you finally found one, Ali!
Wow, it's really fantastic. Very nice and clear. Thanks
Glad you enjoyed it!
Didn't know about this, thank you Sean!
me has ayudado demasiado, estoy aprendiendo a programar en swift y has sido un gran tutor
I liked the colours that u have picked up! tx for the video
Thanks! I try to make my tutorials look good.
I didn’t even know you could do that. Thanks dude
Happy to hear you learned a new trick!
Great video, Sean... and I’m loving that dark theme!
Have you tried the Xcode 10 Beta yet?
Not yet... the only beta I've been using so far is iOS 12
if you're ever done with contracting, become a teacher. You're awesome
Thanks... I just might do that...
Hi, Sean
you are a great teacher
Thanks Axel, I appreciate the kind words 😀
Your approach is better than 'refactor to storyboard', which i cannot create a new one in the right place.
'Refactor to Storyboard` came out after I had already built my habits (the way I did this video). I've never really used it, but interesting to hear that it can act weird sometimes.
Thanks for share. Excellent tutorial!
Glad you liked it, Urayoan!
Never knew you could do this.
Great video. Always learning something new with you dude!
Keep it up!
Glad to hear it, Rick 👍
Thank you, Sean! Your video tutorials are amazing! :D
Thanks for the kind words, Christian. Happy to help!
Very helpful, thanks Sean
Glad you enjoyed the video, Duncan 👍
Thank you :) I send you greetings from México :)
Happy to help 😀
very helpful thanks sean
Happy to help, Stalin 👍
Hi Sean, I haven't known this yet.. Thanks for this, I love it.
Happy to hear you learned something new, Joel 👍
^_^
Great one how come I missed this tutorial? I'm building this project in my workplace and I kinda fell in plenty view controllers on my storyboard which makes loading my projects very slow especially when I visit the storyboard to add a new view controller. I'm glad I subscribed to your channel. Thanks man!!
Have you turned on Notifications on my channel (next to the subscribe button)? If you do that, you'll get a notification for new videos. Thanks for watching!
Thank you! This video is very helpful.
Really very helpful! Thank you Sean
Glad it was helpful!
Thanks Allen, i very liked your video.
Happy it helped, Sergei!
Very helpful video!!
Really really good video! How do I setup segue's programmatically using storyboard references?
Thank you for making my life easier!
Happy to help!
Great Tutorial!!!
Glad you liked it!
I stopped using storyboards very early on in the learning process. My ancient MacBook Air would constantly lag when trying to do anything, even with two or three viewControllers on screen. Now, I do EVERYTHING in code, and I’m never going back if I can help it.
Programatic UI is perfectly fine. You know a bit more about how the UI works when you do it that way, and it's a good way to learn. I actually use a hybrid approach, using skeletal storyboards.
Hi Sean. Your videos are very helpful to me, and I really appreciate your your help. I'm curious about learning your UI hybrid approach. Can you please make a video on it? Thanks a lot.
I have a video planned for that, so yes, it will happen. Just can't say when.
I love to work only programmatically. I have a project I have to use your recommendation as in Xcode 10 is very slow to handle the project. It was fine with Xcode 9
Building your UI programmatically is perfectly fine. This wasn't a Storyboard vs. Code video. Just helping those who use storyboards use them a little better.
Is there a video for the navigation bar, showing how to use the first back button in a secondary storyboard to take you back to, say, the second view controller on the main storyboard?
THANK YOU SOO MUCH !!!!
Happy to help, Onkar!
Omg thanks U refactored my day ^^
In xcode 11, cut and paste is not working. I just did the editor > refactor to storyboard (as suggested by Fady Yecob), then created a new storyboard from there.
I'm new and this might be a stupid question but what if you wanted to segue from one of the story boards back to the tab bar view controller? Like a logout button, then how can you make that segue using the storyboard?
Awesome! THANK YOU!
Thanks for that tutorial. What if you wanted to perform a segue from the 2nd green view controller (Green VC tab) to the 3rd blue VC (bleu VC tab)? what will the prepare for segue method looks like?
You'd adjust your storyboard reference so that the initial view controller was the 3rd Blue VC. The properties of the storyboard reference let you input a storyboard identifier for a view controller
What is your opinion on design patterns? What do you use? MVVM, MVC, VIPER, CLEAN SWIFT,...?
@Sean A loved the video man keep up the good work, I am wondering though what is your preference storyboard or code ? I would love to see a video about this topic indepth couse its a pretty big discussion in our community
Yup, it's a big discussion because (in my opinion), both side are completely valid and it comes down to personal preference. Me personally, I use a mix of both. "Skeletal Storyboards" is what it's been called. I'll be doing a video on this topic soon.
Can't wait to see it :)
Well explained Sean. Definitely prefer this approach when working in a team and working with large projects having many storyboards. Does creating multiple storyboards have any effect on performance or loading?
Not that I'm aware of.
Love your videos Sean. You've helped me so much over the month's 😁 is there a way to put alert message in to it's own class. I'm re-using the same code all over my app and i know this is totally wrong. Any pointers would be helpful. Thanks for the video's dude and keep up the hardwork 😁
hey, i think I can help you
you can make a static function in an Alert class
class Alert{
static func present(sender: UIViewController, title: String, message: String, buttonText: String = "OK"){
let alert = UIAlertController(title: title, message: message, preferredStyle: .alert)
let button = UIAlertAction(title: buttonText, style: .default, handler: nil)
alert.addAction(button)
sender.present(alert, animated: true, completion: nil)
}
}
//You can call the fuction like this
Alert.present(sender: **SomeViewControllerInstance**, title: "Oops", message: "An unknown error occured.")
You could even give the title and message parameters default values to (at times) make your function call even shorter.
Patrick Hanna dude your a life saver. I will try out when I'm sober
There are various versions of what Patrick answered, but that's the gist of it. Use any variation of that and you'll be good. Thanks for the kind words about the channel.
I think that if you only show "Alert" messages in your view controllers then you should extend UIViewController and make this function as an instance method of it because with this way you drop the "sender: UIViewController" parameter, allowing it to be called a bit more easily.
Cong Doan You‘re usually only going to be calling the function in a viewController subclass, so yes, that makes a lot of sense. Thanks, I’ll be sure to use that in my projects!
Hey Sean! This tutorial is great, but I have one question: How to create segues between reference storyboards?
@Sean Allen What if I have segue from the last controller in TabBarItem1 to the last controller in TabBarItem2? How they have to be connected ?
Hi,
I have a question and didn't find this asked in comments below... Example storyboard was quite simple if compare with monsters what you can find in real life when "everything in one Storyboard" approach is used.
My example: Project with > 30 view controllers in it. Lot of them are connected with segues and you can jump over the screens between green, pink and blue flows(if comparing with your example)
All the new views what are added by me have no ViewController on StoryBoard at all or have it but without segues. So I'm planning to add new flows in new StoryBoards, but still, don't have a plan about old one. What would be the best way to cut it in the parts?
1) StoryBoard references for all the segues?
2) Segue replacement with viewcontroler pushing in the code
3) Put all the new things in new StoryBoards and try to open old one as rarely as possible and ignore it? :D
4) ..
Man, Airvars... how do you keep working on these crazy projects? 5000 line VCs, and now this, lol... Brave man to always get in there and fix other people's problems. But anyway, this would be a pretty in-depth refactor. All the options you listed are perfectly viable (with the exception of #3, lol). My initial thought would be to replace the segues with references... but also doing the navigation is code is fine too. I'd have to see the project to really know how to do it... but both of those methods (1 or 2) is perfectly fine. I would just be consistent throughout the project. Having half of the navigation be done via segues, and the other half in code is kind of confusing.
:)
Thanks.
Making the world better buy one project at a time
Question - how do I programmatically write segues from a different storyboard that are triggered based on an action? For example a user enters their information and clicks login, upon the credentials coming back valid it will redirect them to the main view controller. How do I do this?
Question , are you using an iMac Pro ? .. I have been thinking of getting one but didn't know if it was necessary . Opposed to just a regular iMac 27 5k ? Right now I have a Mac mini (hdmi) hooked up to a dell 27 inch , I also have a MacBook Pro hooked up to the same dell monitor via USB C .
Hey Scott, yeah, I'm using an iMac Pro. It's not necessary at all if all you're doing is software development. The main reason I got my iMac Pro is for editing video for this RUclips channel.
Hi Sean! I love your videos. I wanted to ask: I feel like storyboards are dreaded in the programming community. Do you prefer to create views programatically and using SnapKit for Autolayout for example? Or do you make storyboards in your projects? What about big companies? Storyboards/XIBs or Programatically created views?
LBTA says otherwise, but every position I've had and every interview I've done, if you don't know how to work with storyboards, you're not getting hired.
I typically use both in a project, while using skeletal storyboards. As for which to learn... the best answer is both. Because requirements are going to vary greatly between companies.
Awesome
Useful. Thanks man.
nice lesson , thank you
You're welcome, Wael!
Tittle: A W E S O M E !
Question: I might be absolutely 100% wrong, but after watching this beautiful I did couple of experiments on my end, and find out that refactoring storyboard does not work with out tabbed bar items, and navigation controller. is that right? or am is just getting the entire thing wrong. also every example I've come across are in tabbed apps.
Thanks! Glad you liked the video, but you can refactor the storyboard no matter what. Doesn't have to be a tabbed app (that's just the most fitting example). I think what you may be getting wrong is how to properly transition between screens on different storyboards. You could literally have each view controller have it's own storyboard if you wanted. (I wouldn't recommend that, but it's perfectly fine to do).
@@seanallen nice nice. I just got it right.
NYC tute by Sean...
Thanks!
Quick Question: Lets say I wanted to go to a view controller that wasn't the initial one. How would I do that thru storyboard reference?
If you look at the inspector for the storyboard reference, just below where you chose which storyboard it referenced, there’s a field for a storyboard identifier for a view controller. Type on the identifier for the view controller you want to go to.
Thanks dude. I love what you do!
Hi, Sean,Thank you for sharing us!! I have a question.
If we make the new view file with the xib file instead of the storyboard, like cheking the "Also create XIB file" when creating a new view controller, how can I use the storyboard references?
When I set the name of the storyboard as "GreenViewController" on the storyboard references I got the error saying: : "error: Did not find storyboard named "GreenViewController" referenced from Main.storyboard".
To be honest, I'm not sure. I've never used Xibs in any of my projects, so I don't have any knowledge there.
Thanks 🙏
great shirt
11:17 You can adjust the order of the items by just drag them on the tabbar UI, no need to delete them at all.
Just click on the scene in the Document Outline to get it to center in the IB visual editor.
thanks for the tip👍 That always annoys me...
On the other hand, you used to be able to reorder tabs by reordering them in the Document Outline, but that doesn't seem to be working in Xcode 10 Beta 2.
(Now using Xcode 10 Beta 3) You can reorder tabs by dragging them around in the storyboard, no need to delete and reestablish relationship connections. However, if you're using storyboard references, it won't be apparent that anything has happened until you build and run, because the tabs in the tab bar just say "Item". Clicking on the relationships in the Document Outline highlights what they point to, but so far it does not highlight the associated tabs, so no help there yet. Maybe Beta 4...
After further experimentation... Reordering tabs in the visual editor *does* also reorder relationships in the Document Outline, so the order the relationships appear in the Document Outline is also the order the tabs will appear in the tab bar.
Hey Seam,
Do you recommend pushing pods in github or do we ignore them?
Great video on great topic, but can you do some zoom in? Even on my 13" it's too hard to see little things.
I mean, if it's possible to capture 1080p or 1440p of your screen, I know you have iMac Pro and it has much bigger resolution ≥≤
I usually zoom in on the code portions of my tutorials, but this one had no code, so all the Xcode items were tough to see. I'll keep this in mind for next time.
Have you been experiencing any issues with macOS Mojave? I'm thinking about upgrading but I only have one Mac - what do you think?
The only issue I've run into personally is that the 3rd party app, Sketch, doesn't work. Other than that... no issues.
Ok, thanks - I think I'll probably update then.
You can just reorder the tab bar icons by click, holding, dragging and dropping in the order that you desire. There's no need to delete VC relationships and reset them in the desired order.
Guess i'm not the only one droppin' science today.
Thanks for pointing that out. Never realized that.
6:49 You can just drag and drop the already created Tab Bar Item to the Navigation Controller instead of remove it :)
Hey,
Why are you not using the storyboard refactoring tool in Xcode?
Good point. I wasn't aware of this, but MANY comments have let me know, lol. Thanks for pointing it out.
That approach will only be valid if you already have the caterpilar/spider web done, the way @Sean Allen explains this viewers can apply this way of thinking from the beginning.
Does xcode has inbuilt story board refactoring tool? 🤔 Any idea how to use it?
Select as many view controllers in your storyboard as you need. Editor -> Refactor to Storyboard... If you need help, let me know...
Wow it worked :D it was too easy, thank you very much :). I used to use Sean Allen way now ill use the way u told me.
Anyone know if it's possible to make my custom tab item for Tab Bar Controller? I'd imagine something like I used to CGRect() to make NSTableViews to make each line their own color should be possible.
I was working in a project, but there was lots of XIB for each element, e.g. tableview.xib, cellview.xib, subcell.xib, didselectt.xib, the project was develop in objective-c what usefull is that?, was very werid to me, but i don't have many experience. I like more this kind of work with storyboard.
Hi my app crashes. I get this error: doesn't contain a view controller with identifier 'checkBalance'. But the checkBalance view controller actually exist just that I did a refractor and moved it into a new storyboard. I am performing the segue programmatically . let moveTo = storyboard?.instantiateViewController(withIdentifier: "checkBalance") present(moveTo!, animated: true, completion: nil). Thanks
In whatever storyboard holds your checkBalance view controller, click on that viewController. On the right, at the top of the inspector, click the middle, down arrow looking icon. A few fields down, you should see a field for "storyboard identifier". Make sure you've entered "checkBalance" as the identifier. This needs to match exactly what you have in your instantiateViewController(withIdentifier: "checkBalance"). Try that and let me know
Thanks for your reply. What i wasn't doing was, I was suppose to specify which storyboard that my checkBalance view controller is in and after doing that I didn't need the optional ? in front of my storyboard. Thanks once again
Happy to help👍
please record in smaller resolution as it's almost impossible to watch on IPad or work laptop. Thanks
Yeah, this one was tough. Normally when I do coding tutorials I make the font really big so it's not an issue. But this one had no coding.
I can't connect @IBOutlet var WebKit in viewController.swift to webKit in storyboard, even from option+click+drag from storyboard to viewController.swift is not successful. May i know what do i need to do?
What i have done:
1. import Webkit
2. Create variable for Webkit in ViewController.storyboard
3. Create Tab Bar Controller -> Navigation Controller -> View Controller First -> View Controller 2 (inside this have Webkit)
Please help, i'm stuck :(
*Webkit View
How to get that black theme for xcode?
It's Xcode 10 in macOS Mojave... It's the beta software that was released during WWDC a couple weeks ago.
My relationship segue is not appearing
how to change app language without changing device language in ios
Guys I'm having a serious issue with Tab Bar Controllers:
I posted my question here: https:
stackoverflow.com/questions/60131478/viewcontrollers-navigation-bar-is-added-below-navigation-controllers-navigatio
Can anyone help me with this?
красава! very nice!
Glad you enjoyed it, Serj!
You could have done this without having to cut/paste and easily with storyboard refactoring.