UA-17470720-3

Jump to content


Photo
- - - - -

Tab Bar item

actions cells

  • Please log in to reply
7 replies to this topic

#1 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 30 December 2014 - 06:55 AM

I've added a tab bar and item to a master view controller. I cannot create a segue from the tab bar item to another view controller. Am I missing something, or is this a bug?

 

Thanks

 

Attached File  Screen Shot 2014-12-30 at 9.53.49 AM.png   23.08K   23 downloads



#2 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 30 December 2014 - 04:36 PM

you need to use a tabbarviewcontroller.. you seem to have just created a view and added a tab bar and table view..not a bug or anything to do with STV at all :)

 

i don't think you can use tabbar view controllers inside a navigation controller either (not normally anyways)

 

needs to look more like this

Attached File  Screen Shot 2014-12-31 at 10.41.22 am.png   337.32K   11 downloads

 

then you can drag to make segues from the tabbarcontroller to the other views


Edited by ozie, 30 December 2014 - 04:44 PM.

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#3 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 30 December 2014 - 07:54 PM

Well, we're going off-topic here, as this probably isn't an STV topic,  but this solution doesn't work for me. When the setup is as you describe Ozie, I cannot fire a segue -- nothing happens. I'll keep looking, but ideas are welcome.

 

 

Attached File  Screen Shot 2014-12-30 at 10.52.54 PM.png   39.69K   10 downloads

 



#4 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 30 December 2014 - 07:58 PM

can you explain what your trying to do.. do you want the app to function say like the iOS App store app.. there the tab bar buttons display a different view?


P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#5 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 30 December 2014 - 08:00 PM

Sure. (and thanks for helping)..

 

I want to have some tabs from the master view that can link modally to other views, such as settings, and/or help...



#6 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 30 December 2014 - 08:04 PM

so you want them to open a view like a sheet/page view and not to replace the current displayed view in the window?


P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.


#7 David DelMonte

David DelMonte

    Forum Master

  • STV 4.0 Pro
  • PipPipPipPipPipPipPip
  • 527 posts
Reputation: 41
Excellent

Posted 30 December 2014 - 08:05 PM

Yes.. Can you do that? What's a good alternative if not?



#8 ozie

ozie

    ¯\_(ツ)_/¯

  • STV 5.0 Pro
  • PipPipPipPipPipPipPip
  • 526 posts
  • LocationAustralia
Reputation: 169
Popular

Posted 30 December 2014 - 08:14 PM

so I had a think:).. if you add your own tabbar control to a view and then setup actions like

- (IBAction)tab1Tapped:(id)sender;

 

then in the function something like

- (IBAction)tab1Tapped:(id)sender {
    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"SToryBoardName" bundle:nil];
    
    UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"ViewStoryBoardID"];
    
    vc.modalPresentationStyle = UIModalPresentationFormSheet;
    [self presentViewController:vc animated:YES completion:nil];
}

 

then you can display the view modally :)

 

using a main TabBarViewController you create an app like app store where thetas when pressed change the whole window view


Edited by ozie, 30 December 2014 - 08:16 PM.

P.S. I hate Swift.. don't talk Swift.. Too old school to learn yet another programming language.






Also tagged with one or more of these keywords: actions, cells

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users