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

iOS

Use 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

Hello 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

Hi 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

Ya seems like it, if you want I can try and build a quick demo on how to use it?

Yea that would be amazing :)