Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Alex Murton
2,810 PointsUse HMSegmentedControl for Storyboards
Hi,
ive been searching online and cant work out how to use this code with storyboards.
I want to layout the views in my storyboard and then set this up,
any ideas?
https://github.com/HeshamMegid/HMSegmentedControl
best,
3 Answers
Kai Aldag
Courses Plus Student 13,560 PointsHello alex,
If you mean you want do use storyboards to drag and drop in the library tab bar then i have bad news, it simply doesn't work like that. you need to make this section of you app in code as far as i know. you can probably place a view controller and simple make the custom tab bar inside of it but each tab can (probably) be made in IB and referenced as one of the tab bar items.
let me know if you need more help because the documentation isn't great. Kai
Alex Murton
2,810 PointsHi Kai,
Thanks for your response. Yea i want to use this code with an existing project i have which uses storyboards. I tried breaking down and the code and creating some IBOutlets but it didnt really work. From what ive seen online there is nothing about using this API with storyboards :(
Alex
Kai Aldag
Courses Plus Student 13,560 PointsYa seems like it, if you want I can try and build a quick demo on how to use it?
Alex Murton
2,810 PointsYea that would be amazing :)