Discussion Forums  >  Status Bar, Navigation Bar

Replies: 7    Views: 216

sxywebgirl
Aspiring developer
Profile
Posts: 158
Reg: Apr 12, 2013
Altadena, CA
7,530
04/12/13 07:30 PM (11 years ago)

tab layout menu - can it be made to scroll?

I'd like to add more than 5 tab links and then enable it to scroll/swipe left or right. Can this be done?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
04/12/13 07:47 PM (11 years ago)
With iOS sadly no. I'm not sure about android... Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/12/13 08:00 PM (11 years ago)
hmm - not without some work. Buzztouch apps use the standard Apple tab bar, which allows for no more than 5 tabs. Apps that have the feature you're looking for probably do so by using a different viewController other than the standard tab bar controller. I believe you would need to create a UIView that had a width equal to the width of the screen times the number of screens you want to be able to swipe across. Then you would need to apply that view to the appDelegate file. In the following method: -(void)configureEnvironmentUsingAppData:(NSString *)appData{ there is the following code which sets the tab bar controller. This is where you would change it to your desired view: //add app's navigation controller (or tab controller) if([self.rootApp.tabs count] > 0){ [self.rootApp.rootTabBarController.view addSubview:globalBackgroundView]; [self.rootApp.rootTabBarController.view sendSubviewToBack:globalBackgroundView]; /* Changed for iOS 6 iOS 6 requires the app's window to have a rootViewController set. Previous code: [self.window addSubview:[self.rootApp.rootTabBarController view]]; */ [self.window.rootViewController = self.rootApp.rootTabBarController view]; [self.window bringSubviewToFront:[self.rootApp.rootTabBarController view]];
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/12/13 08:06 PM (11 years ago)
I should add I've never attempted this - it's just an educated guess of how that might work
 
SheriDee
Code is Art
Profile
Posts: 1094
Reg: Sep 23, 2011
location unknow...
22,840
like
04/12/13 10:10 PM (11 years ago)
check out this app....the first screen might be what you are looking for.... https://itunes.apple.com/us/app/twin-cities-film-fest/id564360894?mt=8 https://play.google.com/store/apps/details?id=com.twincitiesfilmfest&hl=en The buzztouch member took the "menu button plugin" and had just one row which COULD transition into a left and right menu using the plugin "simple menu plugin" ..... -sheri
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/13/13 06:11 AM (11 years ago)
Nice Sheri! Interesting mod on the menu plugin. Although it seems like they've now made it a vertical scroll. My guess is our poster needs something that persists across screens though.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/13/13 06:33 AM (11 years ago)
Just noticed that was one of Susan's apps, too. Even better! :)
 
sxywebgirl
Aspiring developer
Profile
Posts: 158
Reg: Apr 12, 2013
Altadena, CA
7,530
like
04/13/13 12:26 PM (11 years ago)
thanks @chris1 and @Sheri. I'll look at both of your ideas.... last night i took the last tab and named it "more" and created another list page that lists all of the screens I have. It's not quite what I wanted but it's ok for now. I'm going to working on it though :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.