Giter Club home page Giter Club logo

Comments (4)

beaucollins avatar beaucollins commented on July 19, 2024

The fix is to add the missing initializer.

Here's an example: beaucollins/Authenticator#3

I'm not sure why it fails on iOS 8 but not on iOS 9+

from authenticator.

beaucollins avatar beaucollins commented on July 19, 2024

Actually, it looks like an even better alternative is to change the super.init call to use init(nibName:bundle) instead of init(style:).

https://gist.github.com/beaucollins/c544983eb4a11c0f06dae41abf5ae06a

diff --git a/Authenticator/Source/TokenListViewController.swift b/Authenticator/Source/TokenListViewController.swift
index 512872c..7a56d67 100644
--- a/Authenticator/Source/TokenListViewController.swift
+++ b/Authenticator/Source/TokenListViewController.swift
@@ -33,7 +33,7 @@ class TokenListViewController: UITableViewController {
     init(viewModel: TokenList.ViewModel, dispatchAction: (TokenList.Action) -> ()) {
         self.viewModel = viewModel
         self.dispatchAction = dispatchAction
-        super.init(style: .Plain)
+        super.init(nibName: nil, bundle: nil)
     }
 
     required init?(coder aDecoder: NSCoder) {

from authenticator.

secmask avatar secmask commented on July 19, 2024

πŸ‘

from authenticator.

mattrubin avatar mattrubin commented on July 19, 2024

Thanks for finding a simple solution, @beaucollins!

from authenticator.

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.