swift3 tag

53 questions


1 answers
112 views
0
Swift3 compilation error

import Foundationfunc stdWeight(hegihtCm height:Double, #bmi:Double) - > Double { return power(height/100.0,2)*bmi}let height = 180.0let w1 = stdWeight (hegihtCm:height, bmi:22.0)print(The standard...

2 years ago

1 answers
133 views
0
About Swift protocol compliance (for example, unknown classes such as Java)

Hello I'm sorry to ask you something I can't do, but I'm having trouble because I don't know how to implement the protocol.I would appreciate it if someone could reply.For reasons such as containerVie...

2 years ago

2 answers
102 views
0
Please tell me about generating fetch conditions for Float values.

How do you generate fetch conditions for Float values?The condition setting for the Ingteger value yielded the expected result, but the condition setting for the Float value did not yield the expected...

2 years ago

1 answers
76 views
0
CCannot use instance member.... エラー error while creating table view

While creating a table view that displays the date and cell check items in the section, the tableData definition displays the error Cannot use instance member'checkListItem1' with in property initiali...

2 years ago

2 answers
116 views
0
Obtain hostnames, IP addresses, and MAC addresses from Swift

I would like to create and obtain software for MacOSX by using Swift in Xcode for the hostname, IP address, and MAC address of the communication device that exists on the same LAN, such as arp-a at th...

2 years ago

1 answers
104 views
0
Unable to Parse JSON Files on Swift3

I'm getting JSON from my API server and trying to log it.let json:NSDictionary=try JSONSerialization.jsonObject(with:data!,options:.allowFragments)as!NSDictionary in the sectionThe data couldn't be re...

2 years ago

1 answers
100 views
0
AES128 Encryption/Decryption Swift3 Support

The following encryption and decryption methods are compatible with swift3.It now crashes when converting the return value to String.swift 2.2 func AES 128 Crypt(data:NSData, keyData:NSData, operation...

2 years ago

1 answers
126 views
0
Conversion from TimeInterval Type to mm:ss.ff String Type

For example, the number timeInterval=124.04521142 is 02:04.04 I'd like to have a String type value of Perhaps because I don't understand the format very well, I can see that it's a bit redundant even ...

2 years ago

2 answers
128 views
0
Could you tell me which DB can read data from the database without login authentication?

Currently, we are unable to read the FIREBASE data on the actual machine.(I can read it on the simulator, but I think I still need to do a lot of research.)I just need to read the data, so I would lik...

2 years ago

1 answers
92 views
0
change the date with swift

I would like to create an application to change the date, but I get an error (signal SIGABRT) in the code below.I'm sorry to trouble you, but could you give me some advice?import UIKitclassViewControl...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.