Post

Replies

Boosts

Views

Activity

Reply to Same app published with different appid
AFAIK, that's not possible. You risk a refusal as a spam app. Appstore is not a platform for testing. You should publish (even in TestFlight), an operational app, maybe lacking some features. If the first publication is for TestFlight, why would you need to change the name and appID ? If it is a confidentiality of the name, you can change the app name only, not its ID.
Oct ’21
Reply to wrong date
When you post code, please post real code (this is not) and use code formatter tool. extension DateFormatter { convenience init(dateFormat: String) { self.init() self.locale = Locale.current self.timeZone = TimeZone.current self.dateFormat = dateFormat } } extension Date { func getCurrentTimestamp()->String{ let formatter = DateFormatter() formatter.timeZone = TimeZone.current formatter.dateFormat = "yyyy-MM-dd HH:mm:ss" return(String(describing:formatter.string(from: self))) } } let dateFormatter = DateFormatter(dateFormat: "HH:mm") let myDate = dateFormatter.date(from: "10:30") print(myDate) // 2000-01-01 08:55:00 +0000 print(TimeZone.current)// "Europe/Berlin" print(Locale.current.description)// "de_DE (current)" print (Date().getCurrentTimestamp())// 2018-10-14 03:56:23" Explain also clearly the problem. With this code I get: Optional(2000-01-01 09:30:00 +0000) Europe/Paris (fixed (equal to current)) en_US (current) 2021-10-13 17:43:40 not 2018 year
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to Cannot convert value of type '[Double]' to expected argument type 'Double'
Please show the complete code. What is the use to redefine each value, such as let NewHour = newHour instead of using only newHour ? Note also that Swift var should begin with lowercase. If the problem is you need Double, maybe you have to:         let calculatePace = Double(NewTime[0]*3600 + NewTime[1]*60 + NewTime[2]) / Double(3600 * NewDistance) or         let calculatePace = Double(newHour*3600 + newMinute*60 + newSeconds) / Double(3600 * NewDistance) This will give hour/km, is it what you want ? If you want km/h, it should be the reverse:         let calculatePace = Double(3600 * NewDistance) / Double(NewTime[0]*3600 + NewTime[1]*60 + NewTime[2]) or         let calculatePace = Double(3600 * NewDistance) / Double(newHour*3600 + newMinute*60 + newSeconds) But once again, tell what you expect, what you get, where is eventual crash and show comprehensive code. And don't forget to close the thread on the correct answer once you got it.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’21
Reply to iPhone 11 not updating
the latest iso. Do you mean the latest iOS ?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iPhone 11 not updating
If it says it is installing iOS update, YES, let it finish (and put on a charger, that may be required to proceed).
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Image Literal
Note that if you have a space before the = sign, you must have one after.
Replies
Boosts
Views
Activity
Oct ’21
Reply to How Do You Assign Int To UILabel
Could you show TestViewController func ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to How Do You Assign Int To UILabel
You could also change your TestViewController to return a String. This name TestViewController is really confusing. Do you create a ViewController here as the name suggests. A name like testScore would be more appropriate (starting with lowerCase).
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Same app published with different appid
AFAIK, that's not possible. You risk a refusal as a spam app. Appstore is not a platform for testing. You should publish (even in TestFlight), an operational app, maybe lacking some features. If the first publication is for TestFlight, why would you need to change the name and appID ? If it is a confidentiality of the name, you can change the app name only, not its ID.
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS - execute code on microphone events
How would you make the difference between ambience noise and someone speaking in a call ?    Did you see this ?     https://stackoverflow.com/questions/66947908/how-to-detect-external-microphone-by-swift-5-in-simulator
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot convert value of type '[Double]' to expected argument type 'Double'
You should show more. We need to know what SomeValue are. Please show the real code. But probably: You have defined and Array of Double Then you try to give it a value of Double, not array.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Multiple Xcode versions on My Mac
Yes it is possible. Just don't forget to name it with a different name, such as Xcode 12.5 It is better to have Xcode on the main drive.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot convert value of type 'Binding<[Video]>.Type' to expected argument type 'Binding<[Video]>'
Did you give up ? You did not provide the needed information.
Topic: Media Technologies SubTopic: Video Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Invalid Redeclaration of Struct Name
Does it work now ? If so, please close the thread.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to There is not enough disk space available to install the product. XCode
Do you try to install Xcode 13 ? 42 GB may be just a bit too limited. Usually, 50 GB may be needed (because there are a lot of large temporary files in the process). 31.58 GB for the app itself 12 GB for the zipped file some more may be needed during installation. You could try to download directly here : https://developer.apple.com/download/more/
Replies
Boosts
Views
Activity
Oct ’21
Reply to wrong date
When you post code, please post real code (this is not) and use code formatter tool. extension DateFormatter { convenience init(dateFormat: String) { self.init() self.locale = Locale.current self.timeZone = TimeZone.current self.dateFormat = dateFormat } } extension Date { func getCurrentTimestamp()->String{ let formatter = DateFormatter() formatter.timeZone = TimeZone.current formatter.dateFormat = "yyyy-MM-dd HH:mm:ss" return(String(describing:formatter.string(from: self))) } } let dateFormatter = DateFormatter(dateFormat: "HH:mm") let myDate = dateFormatter.date(from: "10:30") print(myDate) // 2000-01-01 08:55:00 +0000 print(TimeZone.current)// "Europe/Berlin" print(Locale.current.description)// "de_DE (current)" print (Date().getCurrentTimestamp())// 2018-10-14 03:56:23" Explain also clearly the problem. With this code I get: Optional(2000-01-01 09:30:00 +0000) Europe/Paris (fixed (equal to current)) en_US (current) 2021-10-13 17:43:40 not 2018 year
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to What app type should I select from the Xcode platform ?
I want to study how to create my first URL Could you explain ? What did you try so far ?
Replies
Boosts
Views
Activity
Oct ’21
Reply to Cannot convert value of type '[Double]' to expected argument type 'Double'
Please show the complete code. What is the use to redefine each value, such as let NewHour = newHour instead of using only newHour ? Note also that Swift var should begin with lowercase. If the problem is you need Double, maybe you have to:         let calculatePace = Double(NewTime[0]*3600 + NewTime[1]*60 + NewTime[2]) / Double(3600 * NewDistance) or         let calculatePace = Double(newHour*3600 + newMinute*60 + newSeconds) / Double(3600 * NewDistance) This will give hour/km, is it what you want ? If you want km/h, it should be the reverse:         let calculatePace = Double(3600 * NewDistance) / Double(NewTime[0]*3600 + NewTime[1]*60 + NewTime[2]) or         let calculatePace = Double(3600 * NewDistance) / Double(newHour*3600 + newMinute*60 + newSeconds) But once again, tell what you expect, what you get, where is eventual crash and show comprehensive code. And don't forget to close the thread on the correct answer once you got it.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’21