GithubHelp home page GithubHelp logo

use pagetabbar on top about samples HOT 11 CLOSED

cosmicmind avatar cosmicmind commented on May 11, 2024
use pagetabbar on top

from samples.

Comments (11)

daniel-jonathan avatar daniel-jonathan commented on May 11, 2024

Hey,

You can use the pageTabBarAlignment property and set it to .top.

:) All the best!

from samples.

mkaya93 avatar mkaya93 commented on May 11, 2024

thank you danieldahan also how can I use it without rootviewcontroller ?
(My viewcontroller loading by tabbar controller how can I set it ? )

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 11, 2024

Yes, if you use the TabBar view, you can place it anywhere you like. If you are using Layout, you can do this:

let tabBar = TabBar()
// Add buttons...
view.layout(tabBar).top().horizontally()

Hope that helps :)

from samples.

mkaya93 avatar mkaya93 commented on May 11, 2024

25-notifications

I'm talking about this. How can I will call page tabbar on this scenario ?

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 11, 2024

At the current moment, there really is only two options:

  1. Use the PageTabBarController, and that means using the rootViewController,
  2. Construct the view yourself. Any suggestions I give you when it comes to creating it yourself will be much harder and more error prone than the PageTabBarController option.

Possibly, I can help you move your current UIViewController to the PageTabBarController using the rootViewController. It is really easy usually.

from samples.

mkaya93 avatar mkaya93 commented on May 11, 2024

@DanielDahan so how can I make it using via storyboard.

ekran resmi 2016-11-20 22 12 43

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 11, 2024

I think making it using Storyboards is going to be complex and really not my speciality. I do everything programmatically, so I don't face limitations that Storyboards impose.

from samples.

mkaya93 avatar mkaya93 commented on May 11, 2024

So, I'm still didn't understand how can I add page tabbar to this scenario

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 11, 2024

I believe if you want to do it with Storyboards you need to construct the entire thing using the pieces available in Material, such as TabBar.

from samples.

mkaya93 avatar mkaya93 commented on May 11, 2024

okay how can I do that without storyboard ?

I'm just trying to figure out how can I implement it.

from samples.

daniel-jonathan avatar daniel-jonathan commented on May 11, 2024

I will be back in a few hours, I will work with you to get it up and running nicely. Let's chat on Material Gitter :)

from samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.