swift4 tag

34 questions


1 answers
85 views
0
Swift4 Terminal Sleep Count

I am currently using Swift4, but I would like to get the number of sleep on my device.I understand that you write the code with AppDelegate.swift when you sleep or start the app.What kind of code shou...

2 years ago

1 answers
98 views
0
About the screen transition using Segue in SKScene in Xcode(Swift)

<Purpose>I want the GameScene to be displayed as a present in the ViewController, and I want the GameScene to use the original ViewController Segue to display the next View in order to display t...

2 years ago

1 answers
82 views
0
The error stringByTrimmingCharactersInSet has not been corrected.

I was learning Swift, and I had a lot of errors when I downloaded and started the file, and the reason was because it was written in Swift2, so I changed it to Swift4, but I couldn't change it to stri...

2 years ago

1 answers
94 views
0
I don't know the type to call json in Swift.

swift4xcode 9.4.1I don't know the type when declaring the type of json in the swift.In the case of this json, what type should I write?The json is as follows:{ calendar: { month: { jp: { 1—January...

2 years ago

2 answers
91 views
0
Enjoy full screen resolution (SpriteKit x Swift4)

According to the code I wrote, when the screen is full, only the lower left side is shown, and depending on the display I use, the display will be strange.For example, is there a way to keep 800px*600...

2 years ago

1 answers
84 views
0
Create an RPN Calculator in Swift

I am currently studying Swift.Now that I understand the basic syntax, I want to make a calculator that can calculate correctly.I understand that the RPN calculator is a useful introduction to programm...

2 years ago

1 answers
92 views
0
I want to change the Swift StatusBar color from the event.

I understand that you can change the color of the status bar with the code below.override var preferredStatusBarStyle:UIStatusBarStyle{ return UISTatusBarStyle.lightContent}However, if I want to chang...

2 years ago

1 answers
135 views
0
Error when trying to update an app in App Store

In order to update the app released in the App Store, I tried to update it by doing Archive as usual and pressing the Distribute App button, but I couldn't update it because this screen appeared on Xc...


1 answers
105 views
0
Alamofire introduced by Carthage is not available

I used the following article to introduce Alamofire in Carthage, but I get an error when building.https://qiita.com/yutat93/items/97fe9bc2bf2e97da7ec1The source code has been generated and is almost t...

2 years ago

1 answers
98 views
0
I want to change the background image on the next page by pressing the button, but it doesn't work.

<Error Occurring>You can do it, but if you press the first button, An error similar to the following appears in the part where getimage.image=bin1 is written:Unexpectedly found nil while unwrapp...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.