KB Tag: mobile app development

  • Dictionaries in Swift

    You may know that in Swift arrays to read out a value, you can call it’s index value similar to: var someArray = [“Farhan”, “Syed”, “March”, “19”, “1996”] someArray[0] Instead of remembering the index value that is assigned to each value we can re-write this with a dictionary. By dictionaries, instead of arbitrary numbers you have read…

  • Conditional Statements in Swift

    When you desire your code to perform only if a certain condition is true then you can use an if statement. You can execute a if like so: var brand = “Apple” if brand == “Apple” { print(“Brand is Apple”) } An  if statement is begin with if followed by the condition then a block, open and close braces. Let’s include a else after the if:…

  • String interpolation in swift

    String interpolation is just several imagine term for combining variables and constants within a string. For example a string like so: var brand = “Apple” Now we might simply print this out by executing: print(“My favorite brand is \(brand)”) We might also utilize this way: print(“My favorite brand is ” + brand) But this technique…

  • Switch Cases in Swift

    You’ve mainly likely heard of an if statement, consider of switch cases to be the more advanced form of a if. To begin a switch statement you inform Swift what variable you want to run things by, and then give the list of possible cases. Swift will get the case that matches your code first and then perform it then exit the switch. Here’s a simple example: let someNumber =…

  • Loops in swift

    In coding, when it comes to repeating operations, you can copy and paste your code 20 times or so or you can easily execute a loop. Verify this simple example: print(“1”) print(“2”) print(“3”) print(“4”) print(“5”) print(“6”) print(“7”) print(“8”) print(“9”) print(“10”) print(“11”) print(“12”) print(“13”) print(“14”) print(“15”) print(“16”) print(“17”) print(“18”) print(“19”) print(“20”) The console numbers 1…20 will…

  • How to create funtion in Swift

    In this blog, I’ll explain you how to create simple functions in Swift along with a little more complex functions that take parameters and can return a value. An easy method to obtain some practice would be to open and follow beside. Let’s begin with a simple function: func someFunctionName () { print(“Hello World!”) }…

  • Ways of Screen navigation in iOS app development

    Learn the ways to screen navigation in iOS app development with the different ways of presenting screens in the iOS app. We will initiate with the most straightforward cases and finally go through various advanced states. In a nutshell, we will be including more abstraction layers to compose our screens decoupled and navigation testable by…

  • How to implement In-App Purchase with iOS app

    In-app purchase (IAP) is a huge way to earn money from your iPhone, iPad, iPod touch or Mac app. You can identify if some app provides IAP by going to the app page, and observe if it has “Offers In-App Purchases” or “In-App Purchases” near the Price, Buy, or Get button. IAP is generally used to…