Giter Site home page Giter Site logo

Custom Class about pagingmenucontroller HOT 10 CLOSED

kitasuke avatar kitasuke commented on September 6, 2024
Custom Class

from pagingmenucontroller.

Comments (10)

kitasuke avatar kitasuke commented on September 6, 2024

Hi,
It may be same case with #48 ?
Presenting only one custom view controller hasn't supported yet, but it will be fixed soon.

from pagingmenucontroller.

DanielSmith1239 avatar DanielSmith1239 commented on September 6, 2024

I added an additional view controller to test that out, and that was the problem. However, now I am experiencing another one. The selected tab moves to the side of the screen, not to the center. Also, How do I make the menu's appearance not opaque?
I am extremely close to completing my app, and this is the final component I need to complete before submitting it, so I would appreciate it if you could help me ASAP. I understand that you are likely extremely busy, and I don't want to pressure you or anything. I really appreciate the help, and I will (of course) give you credit in my app's "About" section.

from pagingmenucontroller.

kitasuke avatar kitasuke commented on September 6, 2024

Could you give me all the options you set for PagingMenuOptions? Because it's much easier to find out the reason of the unexpected behaviour. Also it would be great if I could see its screenshots.

from pagingmenucontroller.

DanielSmith1239 avatar DanielSmith1239 commented on September 6, 2024

Here is my code for the options: let options = PagingMenuOptions()
options.menuHeight = 44
options.menuDisplayMode = PagingMenuOptions.MenuDisplayMode.FlexibleItemWidth(centerItem: true, scrollingMode: PagingMenuOptions.MenuScrollingMode.ScrollEnabledAndBouces)
options.textColor = UIColor.blackColor()
options.backgroundColor = UIColor(netHex: 0xFCFCFC)
options.menuItemMode = PagingMenuOptions.MenuItemMode.Underline(height: 2, color: UIColor(netHex:0x0066FF))

    let pagingMenuController = self.childViewControllers.first as! PagingMenuController
    pagingMenuController.delegate = self
    pagingMenuController.setup(viewControllers: viewControllers, options: options)

Also, I just realized that the selected tab centers (as it should) while running in the iOS simulator, but it doesn't center when on a physical device (see image below).
img_4979

from pagingmenucontroller.

kitasuke avatar kitasuke commented on September 6, 2024

Thanks for helpful info. Also could you tell me what version of PagingMenuController you are using?

from pagingmenucontroller.

DanielSmith1239 avatar DanielSmith1239 commented on September 6, 2024

I am using the version for swift 2.

from pagingmenucontroller.

kitasuke avatar kitasuke commented on September 6, 2024

I'm digging into more detail with your options and try to tell you what's wrong ASAP. Please wait a bit more.

FYI, since Xcode 7 is still beta, any project written in Swift 2.0 can not be submitted at this moment if I'm correct.

from pagingmenucontroller.

DanielSmith1239 avatar DanielSmith1239 commented on September 6, 2024

Thank you, I apreciate all of the help.

from pagingmenucontroller.

kitasuke avatar kitasuke commented on September 6, 2024

The selected tab moves to the side of the screen, not to the center. Also, How do I make the menu's appearance not opaque?

I set same options as yours and it works fine on my device. I'll look into more detail and let you know if there is something wrong.
I didn't make it opaque. How do you think it's opaque?

from pagingmenucontroller.

kitasuke avatar kitasuke commented on September 6, 2024

Please try the latest version and reopen this issue if there is still something wrong.

from pagingmenucontroller.

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.