Home>
I have a question for experts.
We are working on the issue of the news reader app in the Swift primer.
At the beginning of the production stage, "Table View Controller" is added to the storyboard, and [Is Initial View Controller] in the Attribute Inspector is also set.
I want to start it by connecting to the actual machine and starting the application.
Even when connected to the actual machine or in the simulator state, the screen will be black after starting the app, and only "Time", "Charge", "Carrier", etc. will be displayed.
Error message
2019-11-23 20: 21: 17.982695 + 0900 newsReader [3237: 159550] [WindowScene] There is no scene delegate set. A scene delegate class must be specified to use a main storyboard file.
Message from debugger: Terminated due to signal 15
Applicable source code
import UIKit
class ListViewController: UITableViewController {
// 14-16 rows (Process to display 3 cells)
override func tableView (_ tableView: UITableView, numberOfRowsInSection section: Int)->Int {
return 3
}
// 19-22 rows (Process to create cells to be displayed)
override func tableView (_ tableView: UITableView, cellForRowAt indexPath: IndexPath)->UITableViewCell {
let cell = tableView.dequeueReusableCell (withIdentifier: "Cell", for: indexPath)
return cell
}
}
-Change Iphone version when running on simulator
・ Triple check that code and procedure are correct
Xcode Version 11.2.1
Actual machine IPhone8 iOS 13.2.2
PC MacBook Air 13-inch, 2018
OS catalina 10.15.1
-
Answer # 1
Related articles
- if i don't charge, xcode won't start up
- xcode - i want to erase the black parts displayed at the top and bottom of the spritekit screen
- xcode - i want to change the start position of the gradation
- xcode - simulator turns black
- xcode - simulator does not start nsexception
- xcode - i want the pickerview to disappear when i press the start button
- simulator does not start even when building with xcode
- xna - simulator does not start even when building with xcode
- how to start a server in xcode local
- xcode - i set appicon of ios app but it is displayed in black
- the iphone screen (on the pc) turns black when building xcode
Related questions
- ios - i want to set a newly created storyboard in xcode as the main interface
- xcode - [swift] i want to display another hidden cell when i tap tableviewcell
- xcode - i want to assign a variable value depending on the screen aspect ratio of swiftui/iphone
- xcode - [swift5] i draw a rectangle with draw, but it turns white
- xcode - i want to display text on top of an image in swift, but i get an exception
- xcode - i want to turn off the menu bar displayed at the top of the iphone simulator
- [swiftui] view cannot be selected from xcode library
- xcode - [swiftui]audioplayerdidfinishplaying is not called
- ios - about the relationship between swift's user default and the project
- ios - how to paste different image into each cell of tableview
It was displayed in the navigator area
[SceneDelegate.swift]
It seems that there was something changed from IOS13 because it was deleted.
As a conclusion, it is OK if you do not delete [SceneDelegate.swift] which is set by default.