swift tag

599 questions


1 answers
43 views
0
What is the maximum amount of data that UserDefaults can store?

Is it okay to put endless data into UserDefaults?I'm not sure if I should switch to Sqlite or Realm.It would be better to centralize the database, but it would be troublesome if it were an existing ap...

2 years ago

1 answers
38 views
0
Understanding Swift Functions (Arguments)

It was during practice at Myplayground.(https://i.stack.imgur.com/CXHAv.jpg)I've just started the programming grammar on swift, and it's a basic one, but I don't know why I get an error.

2 years ago

1 answers
36 views
0
Want Swift to monitor the number of Array elements

I would like ViewController to handle changes in the number of elements in an array in another class.//ViewControllerdataSource.addObserver(self, forKeyPath: dataArray, options: .New, context:nil)over...

2 years ago

1 answers
38 views
0
I want to get AVPlayer button events

I use AVPlayerViewController to play videos.After playing the video I gave to Player, I would like to play the next video with the Fast Forward/Skip button (>>|).However, I don't know how to get...

2 years ago

1 answers
32 views
0
Custom Cells Using UITableView with SpriteKit

Thank you for your continuous support.I would like to use UITableView with SpriteKit.We would like to customize the cells by referring to the following site.In the following source, the cell is compos...

2 years ago

3 answers
40 views
0
I want to run a shell script from Swift.

How do I run a shell script from Swift?Also, I would like to wait for Swift to finish executing the shell script.

2 years ago

1 answers
86 views
0
Realm handles existing databases

I'm a beginner at Realm, so I'm sorry if this is a misguided question.Currently, I convert the database created in Excel into csv, load it from SQLite, and run it with the iPhone app.However, since th...

2 years ago

1 answers
34 views
0
extra argument error in swift

let videoInput=AVCaptureDeviceInput.deviceInputWithDevice(self.videoDevice, error:nil)!Extra argument 'error' in call with the above codeWhat is the cause of the error?

2 years ago

1 answers
37 views
0
Is there a way to use Swift to handle lines as figures, just like using illustrator figures?

Like dealing with illustrator figures, Is there any way to handle lines as a figure?Draw a line from one point to another and It is assumed that the line itself can be dragged to move, rotate, or shri...

2 years ago

1 answers
35 views
0
Why do I get an exception when I try to access a list of my own type in Swift's class?

The question is whether the code below is correct or not.In XCode 9.0, this is the code for Swift 4.When I tried to execute it with the code below error:Execution was interrupted, reason:EXC_BAD_ACCES...

2 years ago
« - 31 - »

© 2024 OneMinuteCode. All rights reserved.