Post

Replies

Boosts

Views

Activity

Reply to Career Advice
Of course you will have to apply for a job there. What is important is the experience you can demonstrate. For instance through an app you developed to show your skills and the tools you master (languages such as Swift, objc, PHP, Python…), test and code management, development environments (Xcode of course but others as well)… The function of app is not that important, but the quality of code (how written, how documented, how did you test…) If you developed this in a small team is just better. Good luck.
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’21
Reply to newbie needs help with basic function exercise
Your code redefines a randomNum and does not use the parameter you pass. To work, you should pass a parameter: magicEightBall(randomNum: 100) But this value is not used in the func, because you redefine randomNum. You just don't need this parameter. Just write: func magicEightBall() { let randomNum = Int.random(in: 0...4) print(randomNum) } magicEightBall() If you need to use the generated random, return it from the func. Here is code in playground: func magicEightBall() - Int { let randomNum = Int.random(in: 0...4) return randomNum } let randomValue = magicEightBall() switch randomValue { case 0 : print("You scored Zero: retry") case 1 : print("You scored One: good start") case 2 : print("You scored Two: improving") case 3 : print("You scored Three: you're nearly there") case 4 : print("You scored Four: bingo") default: break } Good continuation and don't forget to close the thread on this answer if that's OK.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
Reply to Assistant not opening the correct swift file
In this example, I have: a xib for a cell a Swift file, with the same name as the xib I display xib in IB I call Assistant It opens directly the Swift file associated to the cell. I change to display another cell xib The right panel changes for the other file. How are your xib and class and swift file named ?
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’21
Reply to Own developed apps on AppStore
You can publish app on the appstore, even free apps. But they must pass the Appstore review (see the guidelines), which means they have an interest to a general audience (not just your family genealogical tree), have good quality, useful features… One other way you could try is to just submit a build and prepare for TestFlight. Your designated users will be able to download from TestFlight and use 90 days. And you can repeat the process with new releases.
Topic: App & System Services SubTopic: Core OS Tags:
Apr ’21
Reply to Problem with sleep() code
Thanks for the feedback. A little more explanation. The problem you had of UI not updating is a "grand classic" with iOS. What happens (in simple words) when you do it directly, the updates of UI are "stacked" and executed at the end of the loop. So you see no progress. When you dispatch to another thread : on each iteration, you update value then you return to the main thread which will execute your order you wait in the secondary thread and continue.
Topic: UI Frameworks SubTopic: UIKit Tags:
Apr ’21