Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help to get this started. #102

Open
coder-efay opened this issue Feb 6, 2019 · 4 comments
Open

Please help to get this started. #102

coder-efay opened this issue Feb 6, 2019 · 4 comments

Comments

@coder-efay
Copy link

Here is the step i took,
1)Install pod 'TabPageViewController'
2) code for my ViewCOntroller
`import UIKit
import TabPageViewController

class ViewController: TabPageViewController {

let tabPageViewController = TabPageViewController.create()
let vc1 = UIViewController()
let vc2 = UIViewController()


override func viewDidLoad() {
    super.viewDidLoad()



    tabPageViewController.tabItems = [(vc1, "First"), (vc2, "Second")]


}

}`
Then I run and get error as attched.
screen shot 2019-02-06 at 9 52 20 am

Please help! thank you very much!!

@coder-efay
Copy link
Author

Please let me know what code you use to make the most simple view like this.

screen shot 2019-02-06 at 9 54 45 am

@jbarros35
Copy link

it does not look to work. I'm on swift 4

@marcoswmv
Copy link

I am facing the same issue. On God, what's the solution for this?

@RishabhSRS
Copy link

set tab items in init() not in viewdidload

like this

import UIKit
class MyVC: TabPageViewController {

override init() {
    super.init()
    let vc1 = VC1()
    let vc2 = VC2()
    
    tabItems = [(vc1, "first"), (vc2, "second")]
}

@MainActor public required init?(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
}

override func viewDidLoad() {
    super.viewDidLoad()
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants