TelegramMessenger / Telegram-iOS

Telegram-iOS
6.35k stars 1.67k forks source link

MyViewController extends TelegramBaseController, on UIStoryboard crash #689

Open janeroseloving opened 2 years ago

janeroseloving commented 2 years ago

Checklist

Description

Describe the issue that you are experiencing

Expected Behavior

Tell us what should happen

Actual Behavior

Tell us what happens instead

Steps to Reproduce

  1. MyViewController extends TelegramBaseController

crash on

public class MyViewController: TelegramBaseController {
    ...
}

// crash on ViewController
required public init(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
}

image

What can I do?

public class MyViewController: UIViewController {
    // this is ok, but navigationController.push() not work
}

Screenshots and Videos

Remove, if not applicable

Environment

Device: iPhone/iPad X

iOS version: 13.X

App version: 8.3.0

tejuamirthi commented 2 years ago

Can you please share the error log if possible?